diff --git a/apps/k8s01/blog/vpa.yaml b/apps/k8s01/blog/vpa.yaml new file mode 100644 index 0000000000000000000000000000000000000000..86a28b8a37e00af30109a1937dfc1e3e687a8e39 --- /dev/null +++ b/apps/k8s01/blog/vpa.yaml @@ -0,0 +1,21 @@ +apiVersion: autoscaling.k8s.io/v1 +kind: VerticalPodAutoscaler +metadata: + name: blog +spec: + targetRef: + apiVersion: "apps/v1" + kind: Deployment + name: blog + updatePolicy: + updateMode: "Auto" + resourcePolicy: + containerPolicies: + - containerName: '*' + minAllowed: + cpu: 10m + memory: 50Mi + maxAllowed: + cpu: 1 + memory: 1Gi + controlledResources: ["cpu", "memory"] \ No newline at end of file