-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #768 from MetaCell/feature/CH-32
Neo4J browser
- Loading branch information
Showing
9 changed files
with
128 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
helm-charts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Neo4j browser helm chart | ||
|
||
Enable this application to deploy a Neo4j server with the neo4j browser enabled. | ||
|
||
## How to use | ||
The neo4j browser will be enabled at neo4j.[DOMAIN]. | ||
|
||
![Neo4j browser login](docs/browser-login.png) | ||
|
||
The default credentials are set in the [application configuration file](deploy/values.yaml). | ||
|
||
It is recommended to change the password during the first login, such as: | ||
|
||
``` | ||
ALTER USER default SET PASSWORD '<new-password>' | ||
``` | ||
|
||
## Implementation | ||
This implementation uses the Neo4j reverse proxy server to enable usage via Ingress and http(s). | ||
|
||
For more information, see https://neo4j.com/docs/operations-manual/current/kubernetes/accessing-neo4j-ingress/ | ||
|
37 changes: 37 additions & 0 deletions
37
applications/neo4j/deploy/templates/reverseProxyServer.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: {{ .Values.apps.neo4j.harness.deployment.name }} | ||
labels: | ||
app: {{ .Values.apps.neo4j.harness.deployment.name }} | ||
namespace: "{{ .Release.Namespace }}" | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: {{ .Values.apps.neo4j.harness.deployment.name }} | ||
template: | ||
metadata: | ||
name: {{ .Values.apps.neo4j.harness.deployment.name }} | ||
labels: | ||
name: {{ .Values.apps.neo4j.harness.deployment.name }} | ||
app: {{ .Values.apps.neo4j.harness.deployment.name }} | ||
spec: | ||
securityContext: {{ toYaml .Values.apps.neo4j.reverseProxy.podSecurityContext | nindent 8 }} | ||
containers: | ||
- name: {{ .Values.apps.neo4j.harness.deployment.name }} | ||
image: {{ .Values.apps.neo4j.reverseProxy.image }} | ||
imagePullPolicy: Always | ||
securityContext: {{ toYaml .Values.apps.neo4j.reverseProxy.containerSecurityContext | nindent 12 }} | ||
ports: | ||
- containerPort: {{ .Values.apps.neo4j.harness.deployment.port }} | ||
env: | ||
- name: SERVICE_NAME | ||
value: {{ .Values.apps.neo4j.harness.database.name }} | ||
- name: PORT | ||
value: {{ .Values.apps.neo4j.harness.deployment.port | quote }} | ||
- name: DOMAIN | ||
value: {{ .Values.apps.neo4j.reverseProxy.domain | default "cluster.local" }} | ||
- name: NAMESPACE | ||
value: {{ .Release.Namespace }} | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
harness: | ||
subdomain: neo4j | ||
database: | ||
auto: true | ||
name: neo4j-db | ||
type: neo4j | ||
user: default | ||
pass: default | ||
deployment: | ||
auto: false | ||
service: | ||
auto: true | ||
# Parameters for reverse proxy | ||
reverseProxy: | ||
image: "neo4j/helm-charts-reverse-proxy:5.23" | ||
|
||
# Name of the kubernetes service. This service should have the ports 7474 and 7687 open. | ||
# This could be the admin service ex: "standalone-admin" or the loadbalancer service ex: "standalone" created via the neo4j helm chart | ||
# serviceName , namespace , domain together will form the complete k8s service url. Ex: standalone-admin.default.svc.cluster.local | ||
# When used against a cluster ensure the service being used is pointing to all the cluster instances. | ||
# This could be the loadbalancer from neo4j helm chart or the headless service installed via neo4j-headless-service helm chart | ||
serviceName: "" | ||
# default is set to cluster.local | ||
domain: "cluster.local" | ||
|
||
# securityContext defines privilege and access control settings for a Container. Making sure that we dont run Neo4j as root user. | ||
containerSecurityContext: | ||
allowPrivilegeEscalation: false | ||
runAsNonRoot: true | ||
runAsUser: 7474 | ||
runAsGroup: 7474 | ||
capabilities: | ||
drop: | ||
- all | ||
|
||
podSecurityContext: | ||
runAsNonRoot: true | ||
runAsUser: 7474 | ||
runAsGroup: 7474 | ||
fsGroup: 7474 | ||
fsGroupChangePolicy: "Always" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters