apiVersion: apps/v1
kind: Deployment
metadata:
  name: mydeploy6
  annotations:
    "werf.io/failures-allowed-per-replica": "0"
spec:
  replicas: 2
  selector:
    matchLabels:
      service: mydeploy6
  template:
    metadata:
      labels:
        service: mydeploy6
    spec:
      initContainers:
      - name: init
        command: [ "true" ]
        image: ubuntu:18.04
      containers:
      - name: main
        command: [ "tail", "-f", "/dev/null" ]
        image: ubuntu:18.04
        startupProbe:
          exec:
            command: [ "true" ]
        readinessProbe:
          exec:
            command: [ "sleep", "50" ]
          periodSeconds: 100
          timeoutSeconds: 50
        livenessProbe:
          exec:
            command: [ "false" ]
          failureThreshold: 1
      - name: never-fails
        command: [ "tail", "-f", "/dev/null" ]
        image: ubuntu:18.04
        startupProbe:
          exec:
            command: [ "true" ]
        readinessProbe:
          exec:
            command: [ "true" ]
        livenessProbe:
          exec:
            command: [ "true" ]
