github.com/datreeio/datree@v1.9.22-rc/pkg/policy/tests/89/pass/89-pass.yaml (about) 1 apiVersion: apps/v1 2 kind: Deployment 3 metadata: 4 name: volumes-example-deployment 5 spec: 6 replicas: 3 7 selector: 8 matchLabels: 9 app: demo 10 template: 11 metadata: 12 labels: 13 app: demo 14 spec: 15 volumes: 16 - name: cache-volume 17 hostPath: 18 path: /cache 19 type: Directory 20 - name: try 21 hostPath: 22 path: /other 23 type: Directory 24 - name: without 25 containers: 26 - name: test-container 27 image: us-docker.pkg.dev/google-samples/containers/gke/hello-app:1.0 28 volumeMounts: 29 - mountPath: /cache 30 name: cache-volume 31 readOnly: true 32 - mountPath: /cache 33 name: try 34 readOnly: true