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

     1  apiVersion: v1
     2  kind: Pod
     3  metadata:
     4    name: cephfs2
     5  spec:
     6    containers:
     7    - name: cephfs-rw
     8      image: kubernetes/pause
     9      volumeMounts:
    10      - mountPath: "/mnt/cephfs"
    11        name: cephfs
    12    volumes:
    13    - name: cephfs
    14      cephfs:
    15        monitors:
    16        - 10.16.154.78:6789
    17        - 10.16.154.82:6789
    18        - 10.16.154.83:6789
    19        user: admin
    20        secretRef:
    21          name: ceph-secret
    22        readOnly: true