github.com/qsunny/k8s@v0.0.0-20220101153623-e6dca256d5bf/examples-master/staging/volumes/vsphere/vsphere-volume-pod.yaml (about)

     1  apiVersion: v1
     2  kind: Pod
     3  metadata:
     4    name: test-vmdk
     5  spec:
     6    containers:
     7    - image: k8s.gcr.io/test-webserver
     8      name: test-container
     9      volumeMounts:
    10      - mountPath: /test-vmdk
    11        name: test-volume
    12    volumes:
    13    - name: test-volume
    14      # This VMDK volume must already exist.
    15      vsphereVolume:
    16        volumePath: "[DatastoreName] volumes/myDisk"
    17        fsType: ext4