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

     1  apiVersion: apps/v1
     2  kind: Deployment
     3  metadata:
     4    name: example-depl
     5    namespace: exmpl
     6    labels:
     7      environment: prod
     8      app: web
     9  spec:
    10    hostNetwork: false
    11    volumes:
    12      - name: docker-sock-volume
    13        hostPath:
    14          path: /var/run/docker.sock
    15    replicas: 2
    16    selector:
    17      matchLabels:
    18        app: web
    19    template:
    20      metadata:
    21        namespace: exmpl
    22        labels:
    23          app: web
    24      spec:
    25        restartPolicy: Never
    26        containers:
    27          - name: front-end
    28            image: nginx:latest
    29            securityContext:
    30              runAsUser: 810
    31            readinessProbe:
    32              tcpSocket:
    33                port: 8080
    34              initialDelaySeconds: 5
    35              periodSeconds: 10
    36            resources:
    37              requests:
    38                memory: "64Mi"
    39                cpu: "64m"
    40              limits:
    41                cpu: "500m"
    42            ports:
    43              - containerPort: 80
    44          - name: rss-reader
    45            image: datree/nginx@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2
    46            livenessProbe:
    47              httpGet:
    48                path: /healthz
    49                port: 8080
    50                httpHeaders:
    51                  - name: Custom-Header
    52                    value: Awesome
    53            readinessProbe:
    54              tcpSocket:
    55                port: 8080
    56              initialDelaySeconds: 5
    57              periodSeconds: 10
    58            resources:
    59              requests:
    60                cpu: "64m"
    61                memory: "128Mi"
    62              limits:
    63                memory: "128Mi"
    64                cpu: "500m"
    65            ports:
    66              - containerPort: 88