apiVersion: extensions/v1beta1 kind: Deployment metadata: name: nginx-deployment labels: name: nginx-deployment spec: replicas: 3 selector: matchLabels: name: nginx template: metadata: labels: name: nginx spec: containers: - name: nginx image: nginx ports: - containerPort: 80