Kubernetes, DevOps, Cloud Computing, Software Development, Programming.
matchLabels: app: nginx template: metadata: labels: app: nginx spec: containers: - name: nginx image: nginx:1.14.2 ports: - containerPort: 80 Save this as nginx-deployment.yaml and apply it: kubectl apply -f nginx-deployment.yaml Next, create a service to expose the Nginx pods: apiVersion: v1 kind: