Files
unitforge/k8s/deployment.yaml
William Valentin 9caf95bb7a refactor: simplify k8s deployment to pure kubectl
- Remove kustomization.yaml and all kustomize references
- Remove deploy-pi.sh and vpa-pi-helper.sh helper scripts
- Remove redundant ConfigMap from vpa.yaml
- Update README.md to focus on standard kubectl commands
- Keep deployment simple with just YAML files and kubectl
- Maintain Pi 5 optimizations and VPA functionality
- No complex tooling required for deployment
2025-09-14 23:18:04 -07:00

75 lines
1.8 KiB
YAML

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