mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
- remove namespace, since it's best practice to use the cli to add it, @roschaefer points out - organize templates into directories - migrations should be ran after the backend has started... - should init really be ran every time??
61 lines
1.6 KiB
YAML
61 lines
1.6 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
creationTimestamp: null
|
|
labels:
|
|
human-connection.org/commit: COMMIT
|
|
human-connection.org/selector: deployment-human-connection-backend
|
|
name: backend
|
|
namespace: human-connection
|
|
spec:
|
|
minReadySeconds: 15
|
|
progressDeadlineSeconds: 60
|
|
replicas: 1
|
|
revisionHistoryLimit: 2147483647
|
|
selector:
|
|
matchLabels:
|
|
human-connection.org/selector: deployment-human-connection-backend
|
|
strategy:
|
|
rollingUpdate:
|
|
maxSurge: 0
|
|
maxUnavailable: 100%
|
|
type: RollingUpdate
|
|
template:
|
|
metadata:
|
|
annotations:
|
|
backup.velero.io/backup-volumes: uploads
|
|
creationTimestamp: null
|
|
labels:
|
|
human-connection.org/commit: COMMIT
|
|
human-connection.org/selector: deployment-human-connection-backend
|
|
name: backend
|
|
spec:
|
|
containers:
|
|
- envFrom:
|
|
- configMapRef:
|
|
name: configmap
|
|
- secretRef:
|
|
name: human-connection
|
|
image: humanconnection/nitro-backend:latest
|
|
imagePullPolicy: Always
|
|
name: backend
|
|
ports:
|
|
- containerPort: 4000
|
|
protocol: TCP
|
|
resources: {}
|
|
terminationMessagePath: /dev/termination-log
|
|
terminationMessagePolicy: File
|
|
volumeMounts:
|
|
- mountPath: /nitro-backend/public/uploads
|
|
name: uploads
|
|
dnsPolicy: ClusterFirst
|
|
restartPolicy: Always
|
|
schedulerName: default-scheduler
|
|
securityContext: {}
|
|
terminationGracePeriodSeconds: 30
|
|
volumes:
|
|
- name: uploads
|
|
persistentVolumeClaim:
|
|
claimName: uploads-claim
|
|
status: {}
|