From 42031650c4954fa9c7e1fb0754e98e345b7849f8 Mon Sep 17 00:00:00 2001 From: Paul Warren Date: Wed, 10 Aug 2022 06:58:49 +0000 Subject: [PATCH] 3 replicas and a service --- desteg-deployment.yaml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/desteg-deployment.yaml b/desteg-deployment.yaml index b5c411e..92f809e 100644 --- a/desteg-deployment.yaml +++ b/desteg-deployment.yaml @@ -5,7 +5,7 @@ metadata: labels: app: desteg spec: - replicas: 1 + replicas: 3 selector: matchLabels: app: desteg @@ -19,3 +19,16 @@ spec: image: dockerhub.kube:5000/desteg:latest ports: - containerPort: 5002 +--- +apiVersion: v1 +kind: Service +metadata: + name: desteg +spec: + selector: + app: desteg + ports: + - protocol: TCP + port: 5002 + targetPort: 5002 + type: LoadBalancer