apiVersion: apps/v1 kind: Deployment metadata: name: unitforge labels: app: unitforge component: webapp spec: replicas: 1 strategy: type: RollingUpdate rollingUpdate: maxSurge: 1 maxUnavailable: 0 selector: matchLabels: app: unitforge template: metadata: labels: app: unitforge component: webapp spec: containers: - name: unitforge image: gitea-http.taildb3494.ts.net/will/unitforge:latest imagePullPolicy: Always ports: - name: http containerPort: 8000 protocol: TCP env: - name: HOST value: "0.0.0.0" - name: PORT value: "8000" - name: DEBUG value: "false" - name: ENVIRONMENT value: "production" - name: LOG_LEVEL value: "info" - name: RELOAD value: "false" - name: WORKERS value: "2" envFrom: - configMapRef: name: unitforge-config resources: requests: memory: "128Mi" cpu: "100m" limits: memory: "256Mi" cpu: "300m" livenessProbe: httpGet: path: /health port: http initialDelaySeconds: 60 periodSeconds: 30 timeoutSeconds: 10 failureThreshold: 3 readinessProbe: httpGet: path: /health port: http initialDelaySeconds: 10 periodSeconds: 10 timeoutSeconds: 5 failureThreshold: 3 restartPolicy: Always terminationGracePeriodSeconds: 30