Ocelot-Social/deployment/ocelot-social/deployment-backend.yaml
2020-12-08 13:29:49 +01:00

63 lines
1.7 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
ocelot.social/commit: COMMIT
ocelot.social/selector: deployment-ocelot-social-backend
name: backend
namespace: ocelot-social
spec:
minReadySeconds: 15
progressDeadlineSeconds: 60
replicas: 1
revisionHistoryLimit: 2147483647
selector:
matchLabels:
ocelot.social/selector: deployment-ocelot-social-backend
strategy:
rollingUpdate:
maxSurge: 0
maxUnavailable: 100%
type: RollingUpdate
template:
metadata:
annotations:
backup.velero.io/backup-volumes: uploads
creationTimestamp: null
labels:
ocelot.social/commit: COMMIT
ocelot.social/selector: deployment-ocelot-social-backend
name: backend
spec:
containers:
- envFrom:
- configMapRef:
name: configmap
- secretRef:
name: ocelot-social
image: ocelotsocialnetwork/develop-backend:latest # for develop
# image: ocelotsocialnetwork/develop-backend:0.6.3 # for production or staging
imagePullPolicy: Always # for develop or staging
# imagePullPolicy: IfNotPresent # for production
name: backend
ports:
- containerPort: 4000
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /develop-backend/public/uploads
name: uploads
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
- name: uploads
persistentVolumeClaim:
claimName: uploads-claim
status: {}