Unverified Commit c4ae9f5a authored by Shaun Elliott's avatar Shaun Elliott Committed by GitHub

added neo4j apoc plugins, for backup purposes (#255)

* * setting up a pvc to allow for neo4j backups

* * allowing pvc to be turned off
* allowing pvc size to be configurable

* ISSUE 196
* added neo4j plugins
* added chart versions
* removed image pull policy never from metadata service

* * PR comment fix; using the correct maven repo urls
parent ecd066ec
name: amundsen name: amundsen
version: 0.0.1 version: 0.1.0
home: https://github.com/lyft/amundsen home: https://github.com/lyft/amundsen
...@@ -77,7 +77,6 @@ spec: ...@@ -77,7 +77,6 @@ spec:
{{- else }} {{- else }}
image: {{ .Values.dockerhubImagePath }}/{{ .Chart.Name }}-{{ .Values.metadataServiceName }}{{ if .Values.oidcEnabled }}-oidc{{ end }}:{{ .Values.metadataImageVersion }} image: {{ .Values.dockerhubImagePath }}/{{ .Chart.Name }}-{{ .Values.metadataServiceName }}{{ if .Values.oidcEnabled }}-oidc{{ end }}:{{ .Values.metadataImageVersion }}
{{- end }} {{- end }}
imagePullPolicy: Never
ports: ports:
- containerPort: 5000 - containerPort: 5000
env: env:
......
name: elasticsearch name: elasticsearch
home: https://www.elastic.co home: https://www.elastic.co
appVersion: 6.7.0 appVersion: 6.7.0
\ No newline at end of file version: 0.1.0
\ No newline at end of file
name: neo4j name: neo4j
home: https://www.neo4j.com home: https://www.neo4j.com
appVersion: 3.3.0 appVersion: 3.3.0
\ No newline at end of file version: 0.1.0
\ No newline at end of file
...@@ -24,6 +24,26 @@ spec: ...@@ -24,6 +24,26 @@ spec:
tolerations: tolerations:
{{ toYaml . | indent 8 }} {{ toYaml . | indent 8 }}
{{- end }} {{- end }}
initContainers:
- name: init-neo4j-plugins
image: "appropriate/curl:latest"
imagePullPolicy: "IfNotPresent"
command:
- "/bin/sh"
- "-c"
- |
curl -L https://github.com/neo4j-contrib/neo4j-apoc-procedures/releases/download/3.3.0.4/apoc-3.3.0.4-all.jar -O
curl -L https://github.com/neo4j-contrib/neo4j-graph-algorithms/releases/download/3.3.5.0/graph-algorithms-algo-3.3.5.0.jar -O
curl -L https://repo1.maven.org/maven2/com/amazonaws/aws-java-sdk-core/1.11.250/aws-java-sdk-core-1.11.250.jar -O
curl -L https://repo1.maven.org/maven2/com/amazonaws/aws-java-sdk-s3/1.11.250/aws-java-sdk-s3-1.11.250.jar -O
curl -L https://repo1.maven.org/maven2/org/apache/httpcomponents/httpclient/4.5.4/httpclient-4.5.4.jar -O
curl -L https://repo1.maven.org/maven2/org/apache/httpcomponents/httpcore/4.4.8/httpcore-4.4.8.jar -O
curl -L https://repo1.maven.org/maven2/joda-time/joda-time/2.9.9/joda-time-2.9.9.jar -O
chmod 755 *.jar
mv *.jar /var/lib/neo4j/plugins
volumeMounts:
- name: plugins
mountPath: /var/lib/neo4j/plugins
containers: containers:
- name: {{ .Chart.Name }} - name: {{ .Chart.Name }}
image: {{ .Chart.Name }}:{{ .Chart.AppVersion }} image: {{ .Chart.Name }}:{{ .Chart.AppVersion }}
...@@ -41,6 +61,8 @@ spec: ...@@ -41,6 +61,8 @@ spec:
{{- if (or (kindIs "invalid" .Values.neo4jpvc) .Values.neo4jpvc)}} {{- if (or (kindIs "invalid" .Values.neo4jpvc) .Values.neo4jpvc)}}
- name: data - name: data
mountPath: /var/lib/neo4j/data mountPath: /var/lib/neo4j/data
- name: plugins
mountPath: /var/lib/neo4j/plugins
{{- end}} {{- end}}
volumes: volumes:
- name: conf - name: conf
...@@ -51,6 +73,10 @@ spec: ...@@ -51,6 +73,10 @@ spec:
persistentVolumeClaim: persistentVolumeClaim:
claimName: neo4j-pvc claimName: neo4j-pvc
{{- end}} {{- end}}
- name: plugins
hostPath:
path: "/mnt/ephemeral/neo4j/plugins"
type: DirectoryOrCreate
{{- with .Values.resources }} {{- with .Values.resources }}
resources: resources:
{{ toYaml . | indent 8 }} {{ toYaml . | indent 8 }}
......
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