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:
29
k8s/vpa.yaml
Normal file
29
k8s/vpa.yaml
Normal 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
|
||||
Reference in New Issue
Block a user