apiVersion: apps/v1 kind: Deployment metadata: name: my-deployment spec: replicas: 1 selector: matchLabels: app: my-app template: metadata: labels: app: my-app spec: containers: - name: main image: nginx:1.17.4-alpine imagePullPolicy: IfNotPresent readinessProbe: failureThreshold: 3 httpGet: path: /does-not-exist port: 8080 scheme: HTTP initialDelaySeconds: 5 periodSeconds: 5 successThreshold: 3 timeoutSeconds: 1