desteg/desteg-deployment.yaml

34 lines
544 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: desteg
labels:
app: desteg
spec:
replicas: 3
selector:
matchLabels:
app: desteg
template:
metadata:
labels:
app: desteg
spec:
containers:
- name: desteg
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