github.com/qsunny/k8s@v0.0.0-20220101153623-e6dca256d5bf/examples-master/volumes/rbd/rbd-with-secret.yaml (about)

     1  apiVersion: v1
     2  kind: Pod
     3  metadata:
     4    name: rbd2
     5  spec:
     6    containers:
     7      - image: kubernetes/pause
     8        name: rbd-rw
     9        volumeMounts:
    10        - name: rbdpd
    11          mountPath: /mnt/rbd
    12    volumes:
    13      - name: rbdpd
    14        rbd:
    15          monitors:
    16          - '10.16.154.78:6789'
    17          - '10.16.154.82:6789'
    18          - '10.16.154.83:6789'
    19          pool: kube
    20          image: foo
    21          fsType: ext4
    22          readOnly: true
    23          user: admin
    24          secretRef:
    25            name: ceph-secret