mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
- I was getting an error locally Failed: error parsing query as Extended JSON: invalid JSON input - updating the syntax to wrap the json in single quotes, and key/values in double quotes fixed the issue - update memory limits
48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
---
|
|
apiVersion: extensions/v1beta1
|
|
kind: Deployment
|
|
metadata:
|
|
name: nitro-neo4j
|
|
namespace: human-connection
|
|
spec:
|
|
replicas: 1
|
|
strategy:
|
|
rollingUpdate:
|
|
maxSurge: 0
|
|
maxUnavailable: "100%"
|
|
selector:
|
|
matchLabels:
|
|
human-connection.org/selector: deployment-human-connection-neo4j
|
|
template:
|
|
metadata:
|
|
annotations:
|
|
backup.velero.io/backup-volumes: neo4j-data
|
|
labels:
|
|
human-connection.org/selector: deployment-human-connection-neo4j
|
|
name: nitro-neo4j
|
|
spec:
|
|
containers:
|
|
- name: nitro-neo4j
|
|
image: humanconnection/neo4j:latest
|
|
imagePullPolicy: Always
|
|
resources:
|
|
requests:
|
|
memory: "2G"
|
|
limits:
|
|
memory: "8G"
|
|
envFrom:
|
|
- configMapRef:
|
|
name: configmap
|
|
ports:
|
|
- containerPort: 7687
|
|
- containerPort: 7474
|
|
volumeMounts:
|
|
- mountPath: /data/
|
|
name: neo4j-data
|
|
volumes:
|
|
- name: neo4j-data
|
|
persistentVolumeClaim:
|
|
claimName: neo4j-data-claim
|
|
restartPolicy: Always
|
|
terminationGracePeriodSeconds: 30
|