Files
unitforge/k8s/vpa.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

30 lines
769 B
YAML

apiVersion: autoscaling.k8s.io/v1
kind: VerticalPodAutoscaler
metadata:
name: unitforge-vpa
labels:
app: unitforge
component: vpa
platform: raspberry-pi
spec:
targetRef:
apiVersion: apps/v1
kind: Deployment
name: unitforge
updatePolicy:
updateMode: "Auto"
minReplicas: 1
resourcePolicy:
containerPolicies:
- containerName: unitforge
# Pi 5 optimized resource bounds
minAllowed:
cpu: 50m
memory: 64Mi
maxAllowed:
cpu: 500m # Conservative limit for Pi 5
memory: 512Mi # Pi 5 can handle this but keep reasonable
# Controlled resource recommendations for Pi hardware
controlledResources: ["cpu", "memory"]
controlledValues: Requests