apiVersion: apps/v1 kind: Deployment metadata: name: my-nginx-deployment spec: replicas: 5 selector: matchLabels: app: my-nginx template: # Template describes the pods that will be created. metadata: name: my-nginx-pod labels: app: my-nginx spec: containers: - name: nginx image: nginx:1.10 ports: - containerPort: 80