summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2024-12-27 08:29:30 +0100
committerSanto Cariotti <santo@dcariotti.me>2024-12-27 08:29:30 +0100
commitc65448415aae1f5602104aed75340307b5c437bc (patch)
treeaa5a03243946e9374786f108037dcf3eadb3dde3
parent3537fd264635453f9e7d934f54d50d4a7cdb8d74 (diff)
Fix label(s) for load balancing
Xmas present I guess, b/c it never really worked
-rw-r--r--yaml/deployments/cas.yaml8
-rw-r--r--yaml/services/cas.yaml6
2 files changed, 7 insertions, 7 deletions
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