From 999709c7ceb8abeaf9e9da5d30990080dfc37fdd Mon Sep 17 00:00:00 2001 From: ian Date: Mon, 2 Oct 2023 15:43:58 +0100 Subject: [PATCH] bugfix --- HorizontalPodAutoscaler/simple.yaml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/HorizontalPodAutoscaler/simple.yaml b/HorizontalPodAutoscaler/simple.yaml index 2c29806..209d613 100644 --- a/HorizontalPodAutoscaler/simple.yaml +++ b/HorizontalPodAutoscaler/simple.yaml @@ -9,14 +9,14 @@ metadata: spec: selector: matchLabels: - run: hpa-simple-deployment + app: hpa-simple-deployment-app template: metadata: labels: - run: hpa-simple-deployment + app: hpa-simple-deployment-app spec: containers: - - name: hpa-simple-deployment + - name: hpa-simple-deployment-container image: registry.k8s.io/hpa-example ports: - containerPort: 80 @@ -29,14 +29,12 @@ spec: apiVersion: v1 kind: Service metadata: - name: hpa-simple-service - labels: - run: hpa-simple-service + name: hpa-simple-deployment-service spec: ports: - port: 80 selector: - run: hpa-simple-service + app: hpa-simple-deployment-app --- apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler