apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx
labels:
name: nginx
spec:
selector:
matchLabels:
name: nginx1
replicas: 3
template:
metadata:
labels:
name: nginx1
spec:
containers:
- name: nginx
image: registry.k8s.io/nginx:test-cmd
ports:
- containerPort: 80