# https://kubernetes.io/docs/concepts/workloads/controllers/deployment/ apiVersion: apps/v1 kind: Deployment metadata: name: election namespace: vhsmp labels: app: election spec: selector: matchLabels: app: election replicas: 1 strategy: rollingUpdate: maxSurge: 25% maxUnavailable: 25% type: RollingUpdate template: metadata: annotations: kubectl.kubernetes.io/default-container: election labels: app: election spec: containers: - name: election image: election 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: election env: - name: DATABASE_URL valueFrom: secretKeyRef: name: election key: DATABASE_URL - name: ORIGIN valueFrom: secretKeyRef: name: election key: ORIGIN - name: BETTER_AUTH_SECRET valueFrom: secretKeyRef: name: election key: BETTER_AUTH_SECRET - name: GITHUB_CLIENT_SECRET valueFrom: secretKeyRef: name: election key: GITHUB_CLIENT_SECRET - name: GITHUB_CLIENT_ID valueFrom: secretKeyRef: name: election key: GITHUB_CLIENT_ID restartPolicy: Always ---