Not able to find refrence over kubernetes documentation for few things

  1. 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”

  1. 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: web-service-canary
      port: 8080
  • backendRefs:
    • name: web-service
      port: 8080

Hi @Pambust

Your first manifest is for Veritcle Pod Auctoscaler. You can get more info on this here.

The second one appears to be an httpRoute resource from GatewayAPI.

Thanks @Santosh_KodeKloud .
I have a followup question that would I be allowed to refer this page during CKA exam- autoscaler/vertical-pod-autoscaler/examples/hamster.yaml at vertical-pod-autoscaler-1.2.1 · kubernetes/autoscaler · GitHub?

No. The docs for VPA are not in the allowed resources during the exam.

If you encounter a question on VPA, you would ideally be provided with the appropriate URL.