From a0cbfe3e4e8b8c0d96cfb89651b0250167d393f9 Mon Sep 17 00:00:00 2001 From: Kristin Martin Date: Sun, 28 Jul 2019 17:48:12 -0700 Subject: [PATCH] Add required selector to VPA deployment examples --- vertical-pod-autoscaler/examples/hamster-deprecated.yaml | 3 +++ vertical-pod-autoscaler/examples/hamster.yaml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/vertical-pod-autoscaler/examples/hamster-deprecated.yaml b/vertical-pod-autoscaler/examples/hamster-deprecated.yaml index c1d4c8af5e3a..e613121cc501 100644 --- a/vertical-pod-autoscaler/examples/hamster-deprecated.yaml +++ b/vertical-pod-autoscaler/examples/hamster-deprecated.yaml @@ -20,6 +20,9 @@ kind: Deployment metadata: name: hamster spec: + selector: + matchLabels: + app: hamster replicas: 2 template: metadata: diff --git a/vertical-pod-autoscaler/examples/hamster.yaml b/vertical-pod-autoscaler/examples/hamster.yaml index cfa77cc261d3..c1c3dab24e66 100644 --- a/vertical-pod-autoscaler/examples/hamster.yaml +++ b/vertical-pod-autoscaler/examples/hamster.yaml @@ -20,6 +20,9 @@ kind: Deployment metadata: name: hamster spec: + selector: + matchLabels: + app: hamster replicas: 2 template: metadata: