mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
84 lines
2.2 KiB
YAML
84 lines
2.2 KiB
YAML
---
|
|
apiVersion: extensions/v1beta1
|
|
kind: Deployment
|
|
metadata:
|
|
name: nitro-backend
|
|
namespace: human-connection
|
|
spec:
|
|
replicas: 1
|
|
minReadySeconds: 15
|
|
progressDeadlineSeconds: 60
|
|
selector:
|
|
matchLabels:
|
|
human-connection.org/selector: deployment-human-connection-backend
|
|
template:
|
|
metadata:
|
|
labels:
|
|
human-connection.org/selector: deployment-human-connection-backend
|
|
name: "nitro-backend"
|
|
spec:
|
|
containers:
|
|
- name: nitro-backend
|
|
image: humanconnection/nitro-backend:latest
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- containerPort: 4000
|
|
env:
|
|
- name: COMMIT
|
|
value: <BACKEND_COMMIT>
|
|
- name: MOCK
|
|
value: "false"
|
|
- name: CLIENT_URI
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: configmap
|
|
key: CLIENT_URI
|
|
- name: GRAPHQL_PORT
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: configmap
|
|
key: GRAPHQL_PORT
|
|
- name: GRAPHQL_URI
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: configmap
|
|
key: GRAPHQL_URI
|
|
- name: MAPBOX_TOKEN
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: configmap
|
|
key: MAPBOX_TOKEN
|
|
- name: JWT_SECRET
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: human-connection
|
|
key: JWT_SECRET
|
|
optional: false
|
|
- name: NEO4J_URI
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: configmap
|
|
key: NEO4J_URI
|
|
volumeMounts:
|
|
- mountPath: /nitro-backend/public/uploads
|
|
name: uploads
|
|
volumes:
|
|
- name: uploads
|
|
persistentVolumeClaim:
|
|
claimName: uploads-claim
|
|
restartPolicy: Always
|
|
terminationGracePeriodSeconds: 30
|
|
status: {}
|
|
---
|
|
kind: PersistentVolumeClaim
|
|
apiVersion: v1
|
|
metadata:
|
|
name: uploads-claim
|
|
namespace: human-connection
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: 2Gi
|