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