k3s/examples/cephfs/cephfs-with-secret.json

40 lines
895 B
JSON

{
"apiVersion": "v1",
"id": "cephfs2",
"kind": "Pod",
"metadata": {
"name": "cephfs2"
},
"spec": {
"containers": [
{
"name": "cephfs-rw",
"image": "kubernetes/pause",
"volumeMounts": [
{
"mountPath": "/mnt/cephfs",
"name": "cephfs"
}
]
}
],
"volumes": [
{
"name": "cephfs",
"cephfs": {
"monitors": [
"10.16.154.78:6789",
"10.16.154.82:6789",
"10.16.154.83:6789"
],
"user": "admin",
"secretRef": {
"name": "ceph-secret"
},
"readOnly": true
}
}
]
}
}