# https://kubernetes.io/docs/concepts/workloads/controllers/deployment/ apiVersion: apps/v1 kind: Deployment metadata: name: taskarr labels: app: taskarr spec: selector: matchLabels: app: taskarr replicas: 1 strategy: rollingUpdate: maxSurge: 25% maxUnavailable: 25% type: RollingUpdate template: metadata: annotations: kubectl.kubernetes.io/default-container: taskarr labels: app: taskarr spec: containers: - name: taskarr image: main imagePullPolicy: IfNotPresent resources: requests: cpu: 100m memory: 100Mi limits: cpu: 100m memory: 100Mi livenessProbe: tcpSocket: port: 3000 initialDelaySeconds: 5 timeoutSeconds: 5 successThreshold: 1 failureThreshold: 3 periodSeconds: 10 ports: - containerPort: 3000 name: http env: - name: DATABASE_URL valueFrom: secretKeyRef: name: taskarr-app key: DATABASE_URL - name: ORIGIN valueFrom: secretKeyRef: name: taskarr-app key: ORIGIN - name: BETTER_AUTH_SECRET valueFrom: secretKeyRef: name: taskarr-app key: BETTER_AUTH_SECRET - name: GITEA_CLIENT_SECRET valueFrom: secretKeyRef: name: taskarr-app key: GITEA_CLIENT_SECRET - name: GITEA_CLIENT_ID valueFrom: secretKeyRef: name: taskarr-app key: GITEA_CLIENT_ID restartPolicy: Always ---