3 replicas and a service

This commit is contained in:
Paul Warren 2022-08-10 06:58:49 +00:00
parent a623c8f9b8
commit 42031650c4

View file

@ -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