#nginx-app-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    run: nginx-app
  name: nginx-app
  namespace: kube-system
spec:
  replicas: 3
  selector:
    matchLabels:
      run: nginx-app
  strategy:
    rollingUpdate:
       maxSurge: 1
       maxUnavailable: 1
    type: RollingUpdate
  template:
    metadata:
       labels:
         run: nginx-app
    spec:
       containers:
       - image: docker-hub:5000/nginx:latest
         name: nginx-app
         ports:
         - containerPort: 80
           protocol: TCP
       dnsPolicy: ClusterFirst
       restartPolicy: Always
