mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 13:45:06 +00:00
add rados block device(rbd) volume plugin
Signed-off-by: Huamin Chen <hchen@redhat.com>
This commit is contained in:
42
examples/rbd/v1beta3/rbd-with-secret.json
Normal file
42
examples/rbd/v1beta3/rbd-with-secret.json
Normal file
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"apiVersion": "v1beta3",
|
||||
"id": "rbdpd2",
|
||||
"kind": "Pod",
|
||||
"metadata": {
|
||||
"name": "rbd2"
|
||||
},
|
||||
"spec": {
|
||||
"containers": [
|
||||
{
|
||||
"name": "rbd-rw",
|
||||
"image": "kubernetes/pause",
|
||||
"volumeMounts": [
|
||||
{
|
||||
"mountPath": "/mnt/rbd",
|
||||
"name": "rbdpd"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"volumes": [
|
||||
{
|
||||
"name": "rbdpd",
|
||||
"rbd": {
|
||||
"monitors": [
|
||||
"10.16.154.78:6789",
|
||||
"10.16.154.82:6789",
|
||||
"10.16.154.83:6789"
|
||||
],
|
||||
"pool": "kube",
|
||||
"image": "foo",
|
||||
"user": "admin",
|
||||
"secretRef": {
|
||||
"name": "ceph-secret"
|
||||
},
|
||||
"fsType": "ext4",
|
||||
"readOnly": true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
40
examples/rbd/v1beta3/rbd.json
Normal file
40
examples/rbd/v1beta3/rbd.json
Normal file
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"apiVersion": "v1beta3",
|
||||
"id": "rbdpd",
|
||||
"kind": "Pod",
|
||||
"metadata": {
|
||||
"name": "rbd"
|
||||
},
|
||||
"spec": {
|
||||
"containers": [
|
||||
{
|
||||
"name": "rbd-rw",
|
||||
"image": "kubernetes/pause",
|
||||
"volumeMounts": [
|
||||
{
|
||||
"mountPath": "/mnt/rbd",
|
||||
"name": "rbdpd"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"volumes": [
|
||||
{
|
||||
"name": "rbdpd",
|
||||
"rbd": {
|
||||
"monitors": [
|
||||
"10.16.154.78:6789",
|
||||
"10.16.154.82:6789",
|
||||
"10.16.154.83:6789"
|
||||
],
|
||||
"pool": "kube",
|
||||
"image": "foo",
|
||||
"user": "admin",
|
||||
"keyring": "/etc/ceph/keyring",
|
||||
"fsType": "ext4",
|
||||
"readOnly": true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user