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

     1  apiVersion: v1
     2  kind: Pod
     3  metadata:
     4    name: cinder-web
     5  spec:
     6    containers:
     7      - name: web
     8        image: nginx
     9        ports:
    10          - name: web
    11            containerPort: 80
    12            protocol: tcp
    13        volumeMounts:
    14          - name: html-volume
    15            mountPath: "/usr/share/nginx/html"
    16    volumes:
    17      - name: html-volume
    18        cinder:
    19          # Enter the volume ID below
    20          volumeID: volume_ID
    21          fsType: ext4