github.com/datreeio/datree@v1.9.22-rc/pkg/policy/tests/28/pass/28-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        containers:
    22          - name: front-end
    23            image: nginx:latest
    24            securityContext:
    25              privileged: false
    26            readinessProbe:
    27              tcpSocket:
    28                port: 8080
    29              initialDelaySeconds: 5
    30              periodSeconds: 10
    31            resources:
    32              requests:
    33                memory: "64Mi"
    34                cpu: "64m"
    35              limits:
    36                cpu: "500m"
    37            ports:
    38              - containerPort: 80
    39          - name: rss-reader
    40            image: datree/nginx@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2
    41            livenessProbe:
    42              httpGet:
    43                path: /healthz
    44                port: 8080
    45                httpHeaders:
    46                  - name: Custom-Header
    47                    value: Awesome
    48            readinessProbe:
    49              tcpSocket:
    50                port: 8080
    51              initialDelaySeconds: 5
    52              periodSeconds: 10
    53            resources:
    54              requests:
    55                cpu: "64m"
    56                memory: "128Mi"
    57              limits:
    58                memory: "128Mi"
    59                cpu: "500m"
    60            ports:
    61              - containerPort: 88