mirror of https://github.com/k3s-io/k3s
commit
3cd7a78880
|
@ -204,7 +204,7 @@ func TestExampleObjectSchemas(t *testing.T) {
|
|||
"../examples/rbd/secret": {
|
||||
"ceph-secret": &api.Secret{},
|
||||
},
|
||||
"../examples/rbd/v1beta3": {
|
||||
"../examples/rbd": {
|
||||
"rbd": &api.Pod{},
|
||||
"rbd-with-secret": &api.Pod{},
|
||||
},
|
||||
|
|
|
@ -7,7 +7,7 @@ If you don't have a Ceph cluster, you can set up a [containerized Ceph cluster](
|
|||
|
||||
Then get the keyring from the Ceph cluster and copy it to */etc/ceph/keyring*.
|
||||
|
||||
Once you have installed Ceph and new Kubernetes, you can create a pod based on my examples [rbd.json](v1beta3/rbd.json) [rbd-with-secret.json](v1beta3/rbd-with-secret.json). In the pod JSON, you need to provide the following information.
|
||||
Once you have installed Ceph and new Kubernetes, you can create a pod based on my examples [rbd.json](rbd.json) [rbd-with-secret.json](rbd-with-secret.json). In the pod JSON, you need to provide the following information.
|
||||
|
||||
- *monitors*: Ceph monitors.
|
||||
- *pool*: The name of the RADOS pool, if not provided, default *rbd* pool is used.
|
||||
|
@ -31,7 +31,7 @@ If Ceph authentication secret is provided, the secret should be first be base64
|
|||
Here are my commands:
|
||||
|
||||
```console
|
||||
# kubectl create -f examples/rbd/v1beta3/rbd.json
|
||||
# kubectl create -f examples/rbd/rbd.json
|
||||
# kubectl get pods
|
||||
```
|
||||
|
||||
|
@ -45,4 +45,4 @@ On the Kubernetes host, I got these in mount output
|
|||
|
||||
If you ssh to that machine, you can run `docker ps` to see the actual pod and `docker inspect` to see the volumes used by the container.
|
||||
|
||||
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/examples/rbd/README.md?pixel)]()
|
||||
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/examples/rbd/README.md?pixel)]()
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"apiVersion": "v1beta3",
|
||||
"apiVersion": "v1",
|
||||
"id": "rbdpd2",
|
||||
"kind": "Pod",
|
||||
"metadata": {
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"apiVersion": "v1beta3",
|
||||
"apiVersion": "v1",
|
||||
"id": "rbdpd",
|
||||
"kind": "Pod",
|
||||
"metadata": {
|
|
@ -1,4 +1,4 @@
|
|||
apiVersion: v1beta3
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: ceph-secret
|
||||
|
|
Loading…
Reference in New Issue