desteg/desteg-deployment.yaml

43 lines
761 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: desteg
namespace: desteg
labels:
app: desteg
spec:
replicas: 1
selector:
matchLabels:
app: desteg
template:
metadata:
labels:
app: desteg
spec:
containers:
- name: desteg
image: dockerhub.kube:5000/desteg:latest
ports:
- containerPort: 5002
resources:
limits:
cpu: '750m'
memory: '4096Mi'
requests:
cpu: '500m'
memory: '2048Mi'
---
apiVersion: v1
kind: Service
metadata:
name: desteg
namespace: desteg
spec:
selector:
app: desteg
ports:
- protocol: TCP
port: 5002
targetPort: 5002
type: LoadBalancer