Skip to content

Instantly share code, notes, and snippets.

@krisek
Last active September 6, 2021 06:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krisek/ab09020d1e326ea53277c45488e42115 to your computer and use it in GitHub Desktop.
Save krisek/ab09020d1e326ea53277c45488e42115 to your computer and use it in GitHub Desktop.
kyverno_vpa.yaml
apiVersion: autoscaling.k8s.io/v1
kind: VerticalPodAutoscaler
metadata:
name: kyverno
spec:
targetRef:
apiVersion: "apps/v1"
kind: Deployment
name: kyverno
updatePolicy:
updateMode: "On"
resourcePolicy:
containerPolicies:
- containerName: "kyverno"
minAllowed:
cpu: "250m"
memory: "256Mi"
maxAllowed:
cpu: "2000m"
memory: "2048Mi"
- containerName: kyverno-pre
mode: "Off"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment