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