Merge pull request #9628 from krousey/exmaple_rbd

Change rbd example to use v1
pull/6/head
Abhi Shah 2015-06-11 14:09:18 -07:00
commit 3cd7a78880
5 changed files with 7 additions and 7 deletions

View File

@ -204,7 +204,7 @@ func TestExampleObjectSchemas(t *testing.T) {
"../examples/rbd/secret": { "../examples/rbd/secret": {
"ceph-secret": &api.Secret{}, "ceph-secret": &api.Secret{},
}, },
"../examples/rbd/v1beta3": { "../examples/rbd": {
"rbd": &api.Pod{}, "rbd": &api.Pod{},
"rbd-with-secret": &api.Pod{}, "rbd-with-secret": &api.Pod{},
}, },

View File

@ -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*. 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. - *monitors*: Ceph monitors.
- *pool*: The name of the RADOS pool, if not provided, default *rbd* pool is used. - *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: Here are my commands:
```console ```console
# kubectl create -f examples/rbd/v1beta3/rbd.json # kubectl create -f examples/rbd/rbd.json
# kubectl get pods # kubectl get pods
``` ```

View File

@ -1,5 +1,5 @@
{ {
"apiVersion": "v1beta3", "apiVersion": "v1",
"id": "rbdpd2", "id": "rbdpd2",
"kind": "Pod", "kind": "Pod",
"metadata": { "metadata": {

View File

@ -1,5 +1,5 @@
{ {
"apiVersion": "v1beta3", "apiVersion": "v1",
"id": "rbdpd", "id": "rbdpd",
"kind": "Pod", "kind": "Pod",
"metadata": { "metadata": {

View File

@ -1,4 +1,4 @@
apiVersion: v1beta3 apiVersion: v1
kind: Secret kind: Secret
metadata: metadata:
name: ceph-secret name: ceph-secret