kube-exam/client-deployment.yaml

42 lines
634 B
YAML

apiVersion: v1
kind: Service
metadata:
name: client
labels:
app: client
spec:
ports:
- port: 8080
targetPort: 80
selector:
app: client
tier: frontend
type: ClusterIP
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: client
labels:
app: client
spec:
replicas: 1
selector:
matchLabels:
app: client
tier: frontend
strategy:
type: Recreate
template:
metadata:
labels:
app: client
tier: frontend
spec:
containers:
- image: client:prod
name: client
ports:
- containerPort: 80
name: client