- I am not able to find any example of vpa which specifies container policies like one example below. I have also checked at VPA github link - GitHub - kubernetes/autoscaler: Autoscaling components for Kubernetes
apiVersion:
kind: VerticalPodAutoscaler
metadata:
name: api-vpa
namespace: services
spec:
targetRef:
apiVersion: apps/v1
kind: Deployment
name: api-deployment
updatePolicy:
updateMode: “Auto”
resourcePolicy:
containerPolicies:
- containerName: api-container
minAllowed:
cpu: “600m”
memory: “600Mi”
maxAllowed:
cpu: “1”
memory: “1Gi”
- I am not able to find a reference or example of headers in ingress manifest over k8s documentation.
apiVersion:
kind: HTTPRoute
metadata:
name: web-app-route
namespace: ck2145
spec:
parentRefs:
- name: nginx-gateway
namespace: nginx-gateway
rules: - matches:
- headers:
- name: X-Environment
value: canary
backendRefs:
- name: X-Environment
- name: web-service-canary
port: 8080
- headers:
- backendRefs:
- name: web-service
port: 8080
- name: web-service