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
This commit is contained in:
William Valentin
2025-09-14 23:18:04 -07:00
parent e2788cb634
commit 9caf95bb7a
6 changed files with 695 additions and 0 deletions

29
k8s/vpa.yaml Normal file
View File

@@ -0,0 +1,29 @@
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