Merge pull request #38128 from elsonrodriguez/rbd-docs-secret-fix

Automatic merge from submit-queue (batch tested with PRs 38181, 38128, 36711)

Adding correct secret type for Ceph RBD storageclass provisioner example

StorageClass now requires provider-specific secret types, adding them to the RBD provisioning docs.
This commit is contained in:
Kubernetes Submit Queue 2016-12-07 03:09:32 -08:00 committed by GitHub
commit 05af68f329
3 changed files with 5 additions and 3 deletions

View File

@ -335,10 +335,10 @@ First we must identify the Ceph client admin key. This is usually found in `/etc
caps osd = "allow *" caps osd = "allow *"
``` ```
From the key value, we will create a secret. We must create the Ceph admin Secret in the namespace defined in our `StorageClass`. In this example we set the namespace to `kube-system`. From the key value, we will create a secret. We must create the Ceph admin Secret in the namespace defined in our `StorageClass`. In this example we've set the namespace to `kube-system`.
``` ```
$ kubectl create secret generic ceph-secret-admin --from-literal=key='AQBfxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx==' --namespace=kube-system $ kubectl create secret generic ceph-secret-admin --from-literal=key='AQBfxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx==' --namespace=kube-system --type=kubernetes.io/rbd
``` ```
Now modify `examples/experimental/persistent-volume-provisioning/rbd/rbd-storage-class.yaml` to reflect your environment, particularly the `monitors` field. We are now ready to create our RBD Storage Class: Now modify `examples/experimental/persistent-volume-provisioning/rbd/rbd-storage-class.yaml` to reflect your environment, particularly the `monitors` field. We are now ready to create our RBD Storage Class:
@ -360,7 +360,7 @@ This key will be made into a secret, just like the admin secret. However this us
``` ```
kubectl create namespace myns kubectl create namespace myns
kubectl create secret generic ceph-secret-user --from-literal=key='AQBQyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy==' --namespace=myns kubectl create secret generic ceph-secret-user --from-literal=key='AQBQyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy==' --namespace=myns --type=kubernetes.io/rbd
``` ```
You are now ready to provision and use RBD storage. You are now ready to provision and use RBD storage.

View File

@ -4,5 +4,6 @@ metadata:
name: ceph-secret-admin name: ceph-secret-admin
type: "kubernetes.io/rbd" type: "kubernetes.io/rbd"
data: data:
#Please note this value is base64 encoded.
key: QVFEQ1pMdFhPUnQrSmhBQUFYaERWNHJsZ3BsMmNjcDR6RFZST0E9PQ== key: QVFEQ1pMdFhPUnQrSmhBQUFYaERWNHJsZ3BsMmNjcDR6RFZST0E9PQ==
type: kubernetes.io/rbd type: kubernetes.io/rbd

View File

@ -4,4 +4,5 @@ metadata:
name: ceph-secret-user name: ceph-secret-user
type: "kubernetes.io/rbd" type: "kubernetes.io/rbd"
data: data:
#Please note this value is base64 encoded.
key: QVFBTWdYaFZ3QkNlRGhBQTlubFBhRnlmVVNhdEdENGRyRldEdlE9PQ== key: QVFBTWdYaFZ3QkNlRGhBQTlubFBhRnlmVVNhdEdENGRyRldEdlE9PQ==