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: labels:
app: desteg app: desteg
spec: spec:
replicas: 1 replicas: 3
selector: selector:
matchLabels: matchLabels:
app: desteg app: desteg
@ -19,3 +19,16 @@ spec:
image: dockerhub.kube:5000/desteg:latest image: dockerhub.kube:5000/desteg:latest
ports: ports:
- containerPort: 5002 - containerPort: 5002
---
apiVersion: v1
kind: Service
metadata:
name: desteg
spec:
selector:
app: desteg
ports:
- protocol: TCP
port: 5002
targetPort: 5002
type: LoadBalancer