github.com/datreeio/datree@v1.9.22-rc/pkg/policy/tests/2/pass/2-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    replicas: 2
    11    selector:
    12      matchLabels:
    13        app: web
    14    template:
    15      metadata:
    16        namespace: exmpl
    17        labels:
    18          app: web
    19      spec:
    20        containers:
    21          - name: front-end
    22            image: nginx:latest
    23            readinessProbe:
    24              tcpSocket:
    25                port: 8080
    26              initialDelaySeconds: 5
    27              periodSeconds: 10
    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