3 replicas and a service
This commit is contained in:
parent
a623c8f9b8
commit
42031650c4
1 changed files with 14 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue