github.com/qsunny/k8s@v0.0.0-20220101153623-e6dca256d5bf/examples-master/volumes/cephfs/cephfs.yaml (about) 1 apiVersion: v1 2 kind: Pod 3 metadata: 4 name: cephfs 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 # by default the path is /, but you can override and mount a specific path of the filesystem by using the path attribute 20 # path: /some/path/in/side/cephfs 21 user: admin 22 secretFile: "/etc/ceph/admin.secret" 23 readOnly: true