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