github.com/datreeio/datree@v1.9.22-rc/pkg/policy/tests/52/pass/52-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 securityContext: 24 runAsNonRoot: true 25 readinessProbe: 26 tcpSocket: 27 port: 8080 28 initialDelaySeconds: 5 29 periodSeconds: 10 30 resources: 31 requests: 32 cpu: "64m" 33 limits: 34 cpu: "500m" 35 ports: 36 - containerPort: 80 37 - name: rss-reader 38 image: datree/nginx@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2 39 securityContext: 40 runAsNonRoot: true 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