ungleich-k8s/v3-calico/nginx-test-deployment.yaml

20 lines
378 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
replicas: 2 # tells deployment to run 2 pods matching the template
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:1.20.0-alpine
ports:
- containerPort: 80