github.com/datreeio/datree@v1.9.22-rc/pkg/policy/tests/56/fail/56-fail.yaml (about)

     1  apiVersion: apps/v1
     2  kind: Deployment
     3  metadata:
     4    name: k8s-probes
     5    labels:
     6      app: nginx
     7  spec:
     8    replicas: 1
     9    selector:
    10      matchLabels:
    11        app: nginx
    12    template:
    13      metadata:
    14        labels:
    15          app: nginx
    16      spec:
    17        containers:
    18        - name: nginx
    19          image: nginx
    20          ports:
    21          - containerPort: 80
    22          readinessProbe:
    23            initialDelaySeconds: 0
    24            periodSeconds: 2
    25            timeoutSeconds: 1
    26            successThreshold: 1
    27            failureThreshold: 1
    28            exec:
    29              command:
    30              - cat
    31              - /etc/nginx/nginx.conf
    32          startupProbe:
    33            timeoutSeconds: 1
    34            failureThreshold: 2
    35            initialDelaySeconds: 0