mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2026-04-06 01:25:31 +00:00
I just went into memory issues when creating all the pods. Neo4j was in a crash loop with exit code 137. Apparently this one: https://success.docker.com/article/what-causes-a-container-to-exit-with-code-137
58 lines
1.7 KiB
YAML
58 lines
1.7 KiB
YAML
apiVersion: extensions/v1beta1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ .Release.Name }}-neo4j
|
|
spec:
|
|
replicas: 1
|
|
strategy:
|
|
rollingUpdate:
|
|
maxSurge: 0
|
|
maxUnavailable: "100%"
|
|
selector:
|
|
matchLabels:
|
|
human-connection.org/selector: deployment-neo4j
|
|
template:
|
|
metadata:
|
|
name: neo4j
|
|
annotations:
|
|
backup.velero.io/backup-volumes: neo4j-data
|
|
labels:
|
|
human-connection.org/commit: {{ .Values.commit }}
|
|
human-connection.org/selector: deployment-neo4j
|
|
spec:
|
|
containers:
|
|
- name: neo4j
|
|
image: humanconnection/neo4j:latest
|
|
imagePullPolicy: {{ .Values.pullPolicy }}
|
|
ports:
|
|
- containerPort: 7687
|
|
- containerPort: 7474
|
|
resources:
|
|
requests:
|
|
memory: {{ .Values.neo4jResourceRequestsMemory | default "1G" | quote }}
|
|
limits:
|
|
memory: {{ .Values.neo4jResourceLimitsMemory | default "1G" | quote }}
|
|
env:
|
|
- name: NEO4J_dbms_security_procedures_unrestricted
|
|
value: "algo.*,apoc.*"
|
|
- name: SECURE_FILE_PERMISSIONS
|
|
value: "yes"
|
|
{{- range $key, $val := .Values.neo4jConfig }}
|
|
- name: NEO4J_{{ $key }}
|
|
value: {{ $val | quote }}
|
|
{{- end}}
|
|
envFrom:
|
|
- configMapRef:
|
|
name: {{ .Release.Name }}-configmap
|
|
- secretRef:
|
|
name: {{ .Release.Name }}-secrets
|
|
# volumeMounts:
|
|
# - mountPath: /data/
|
|
# name: neo4j-data
|
|
# volumes:
|
|
# - name: neo4j-data
|
|
# persistentVolumeClaim:
|
|
# claimName: neo4j-data-claim
|
|
restartPolicy: Always
|
|
terminationGracePeriodSeconds: 30
|