github.com/datreeio/datree@v1.9.22-rc/pkg/policy/tests/21/pass/21-pass.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      owner: ducky
    10  spec:
    11    hostNetwork: false
    12    replicas: 2
    13    selector:
    14      matchLabels:
    15        app: web
    16    template:
    17      metadata:
    18        namespace: exmpl
    19        labels:
    20          app: web
    21      spec:
    22        restartPolicy: Always
    23        containers:
    24          - name: front-end
    25            image: nginx:latest
    26            securityContext:
    27              runAsUser: 810
    28            resources:
    29              requests:
    30                memory: "64Mi"
    31                cpu: "64m"
    32              limits:
    33                cpu: "500m"
    34            ports:
    35              - containerPort: 80
    36          - name: rss-reader
    37            image: datree/nginx@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2
    38            livenessProbe:
    39              httpGet:
    40                path: /healthz
    41                port: 8080
    42                httpHeaders:
    43                  - name: Custom-Header
    44                    value: Awesome
    45            readinessProbe:
    46              tcpSocket:
    47                port: 8080
    48              initialDelaySeconds: 5
    49              periodSeconds: 10
    50            resources:
    51              requests:
    52                cpu: "64m"
    53                memory: "128Mi"
    54              limits:
    55                memory: "128Mi"
    56                cpu: "500m"
    57            ports:
    58              - containerPort: 88