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