apiVersion: apps/v1
kind: Deployment
metadata:
   name: hello-dep
   namespace: default
spec:
   replicas: 3
   strategy:
      type: RollingUpdate
      rollingUpdate:
         maxSurge: 1
         maxUnavailable: 0
   selector:
      matchLabels:
         app: hello-dep
   template:
      metadata:
         labels:
            app: hello-dep
      spec:
         containers:
         -  image: gcr.io/google-samples/hello-app:1.0 # change for 2.0 and apply
            imagePullPolicy: Always
            name: hello-dep
            ports:
            -  name: readiness-port
               containerPort: 8080
            readinessProbe:
               httpGet:
                  path: /
                  port: liveness-port
               initialDelaySeconds: 5
               periodSeconds: 5
               successThreshold: 1