apiVersion: v1
kind: Pod
metadata:
  name: test-pod
spec:
  containers:
    - image: k8s.gcr.io/test-webserver
      name: test1
      volumeMounts:
        - mountPath: /tmp/cache
          name: cache-volume
    - image: k8s.gcr.io/test-webserver
      name: test2
      volumeMounts:
        - mountPath: /tmp/cache
          name: cache-volume
        - mountPath: /gce
          name: gce
  volumes:
    - name: cache-volume
      emptyDir: {}
    - name: gce
      gcePersistentDisk: {}
---
apiVersion: v1
kind: Pod
metadata:
  name: test-pod2
spec:
  containers:
    - image: k8s.gcr.io/test-webserver
      name: test1
      volumeMounts:
        - mountPath: /tmp/cache
          name: cache-volume
    - image: k8s.gcr.io/test-webserver
      name: test2
      volumeMounts:
        - mountPath: /gce
          name: gce
  volumes:
    - name: cache-volume
      emptyDir: {}
    - name: gce
      gcePersistentDisk: {}
---
apiVersion: v1
kind: Pod
metadata:
  name: test-pod-bad-mount
spec:
  containers:
    - image: k8s.gcr.io/test-webserver
      name: test1
      volumeMounts:
        - mountPath: /cache
          name: cache-volume
  volumes:
    - name: cache-volume
      emptyDir: {}
---
apiVersion: v1
kind: Pod
metadata:
  name: test-pod-with-resources
spec:
  containers:
  - image: k8s.gcr.io/test-webserver
    name: test1
    resources:
      requests:
        ephemeral-storage: "129M"
      limits:
        ephemeral-storage: "129M"
    volumeMounts:
      - mountPath: /tmp/cache
        name: cache-volume
  volumes:
    - name: cache-volume
      emptyDir: {}
---
apiVersion: v1
kind: Pod
metadata:
  name: test-pod-with-gke-vol
spec:
  containers:
    - image: k8s.gcr.io/test-webserver
      name: test2
      resources:
        requests: {}
        limits: {}
      volumeMounts:
        - mountPath: /gce
          name: gce
  volumes:
    - name: gce
      gcePersistentDisk: {}
---
apiVersion: v1
kind: Pod
metadata:
  name: test-pod-with-resources-multiple-ctnrs
spec:
  containers:
    - image: k8s.gcr.io/test-webserver
      name: test1
      resources:
        requests:
          ephemeral-storage: "129M"
        limits:
          ephemeral-storage: "129M"
      volumeMounts:
        - mountPath: /tmp/cache
          name: cache-volume
    - image: k8s.gcr.io/test-webserver
      name: test2
      resources:
        requests: {}
        limits: {}
      volumeMounts:
        - mountPath: /gce
          name: gce
  volumes:
    - name: cache-volume
      emptyDir: {}
    - name: gce
      gcePersistentDisk: {}
