From c65448415aae1f5602104aed75340307b5c437bc Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Fri, 27 Dec 2024 08:29:30 +0100 Subject: Fix label(s) for load balancing Xmas present I guess, b/c it never really worked --- yaml/deployments/cas.yaml | 8 +++++--- yaml/services/cas.yaml | 6 ++---- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'yaml') diff --git a/yaml/deployments/cas.yaml b/yaml/deployments/cas.yaml index f7814ad..86dc11a 100644 --- a/yaml/deployments/cas.yaml +++ b/yaml/deployments/cas.yaml @@ -2,15 +2,17 @@ apiVersion: apps/v1 kind: Deployment metadata: name: cas-deployment + labels: + app: cas-app spec: - replicas: 1 + replicas: 2 selector: matchLabels: - app: cas + app: cas-app template: metadata: labels: - app: cas + app: cas-app spec: containers: - name: cas diff --git a/yaml/services/cas.yaml b/yaml/services/cas.yaml index bd30fe9..0942e33 100644 --- a/yaml/services/cas.yaml +++ b/yaml/services/cas.yaml @@ -4,10 +4,8 @@ metadata: name: cas-service spec: ports: - - port: 8000 + - port: 80 targetPort: 8000 - name: http - protocol: TCP selector: - app: cas + app: cas-app type: LoadBalancer -- cgit v1.2.3-18-g5258