Unverified Commit 04e75a59 authored by Jonas Brunsgaard's avatar Jonas Brunsgaard Committed by GitHub

fix: Update helm Neo4j deployment (#706)

Use emptyDir for Neo4j deployment plugin volumes instead of hostPath.
With this change we get rid of the dependency on hostPath and thus the
dependency on the hosts filesystem and pods permissions to the hostPath.
The custom Neo4j deployment can now also run on GKE (and other k8s
clusters).

I also sorted the config options for for Neo4j and disabled
auth. The disabling of Neo4j auth seems to be a consistent setting
through this repo (docker examples, and ECS examples).
Signed-off-by: 's avatarJonas Brunsgaard <jonas.brunsgaard@gmail.com>
parent 92988eab
...@@ -12,13 +12,14 @@ metadata: ...@@ -12,13 +12,14 @@ metadata:
heritage: {{ .Release.Service }} heritage: {{ .Release.Service }}
data: data:
neo4j.conf: |- neo4j.conf: |-
apoc.export.file.enabled=true
apoc.import.file.enabled=true apoc.import.file.enabled=true
cypher.forbid_shortestpath_common_nodes=false cypher.forbid_shortestpath_common_nodes=false
dbms.connector.bolt.enabled=true dbms.connector.bolt.enabled=true
dbms.connector.bolt.listen_address=:7687
dbms.connector.bolt.tls_level=OPTIONAL
dbms.connector.http.enabled=true dbms.connector.http.enabled=true
dbms.connector.https.enabled=true dbms.connector.https.enabled=true
dbms.shell.enabled=true
dbms.shell.host=0.0.0.0
dbms.connectors.default_listen_address=0.0.0.0 dbms.connectors.default_listen_address=0.0.0.0
dbms.directories.import=/mnt dbms.directories.import=/mnt
dbms.jvm.additional=-Djdk.tls.ephemeralDHKeySize=2048 dbms.jvm.additional=-Djdk.tls.ephemeralDHKeySize=2048
...@@ -33,8 +34,9 @@ data: ...@@ -33,8 +34,9 @@ data:
dbms.memory.heap.max_size={{ .Values.neo4j.config.dbms.heap_max_size }} dbms.memory.heap.max_size={{ .Values.neo4j.config.dbms.heap_max_size }}
dbms.memory.pagecache.size={{ .Values.neo4j.config.dbms.pagecache_size }} dbms.memory.pagecache.size={{ .Values.neo4j.config.dbms.pagecache_size }}
dbms.security.allow_csv_import_from_file_urls=true dbms.security.allow_csv_import_from_file_urls=true
dbms.security.auth_enabled=false
dbms.security.procedures.unrestricted=algo.*,apoc.* dbms.security.procedures.unrestricted=algo.*,apoc.*
dbms.shell.enabled=true
dbms.shell.host=0.0.0.0
dbms.windows_service_name=neo4j dbms.windows_service_name=neo4j
apoc.export.file.enabled=true
apoc.import.file.enabled=true
{{ end }} {{ end }}
...@@ -92,7 +92,5 @@ spec: ...@@ -92,7 +92,5 @@ spec:
claimName: neo4j-pvc claimName: neo4j-pvc
{{- end}} {{- end}}
- name: plugins - name: plugins
hostPath: emptyDir: {}
path: "/mnt/ephemeral/neo4j/plugins"
type: DirectoryOrCreate
{{ end }} {{ end }}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment