ungleich-k8s/generic/nginx-test-deployment.yaml

31 lines
465 B
YAML
Raw Normal View History

2021-05-20 17:28:39 +00:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
spec:
selector:
matchLabels:
app: nginx
2022-03-11 07:49:12 +00:00
replicas: 6
2021-05-20 17:28:39 +00:00
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:1.20.0-alpine
ports:
- containerPort: 80
2021-06-05 16:24:30 +00:00
---
apiVersion: v1
kind: Service
metadata:
name: nginx-service
spec:
selector:
app: nginx
ports:
- protocol: TCP
port: 80