Skip to content
This repository has been archived by the owner on Oct 21, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1306 from kifeo/master
Browse files Browse the repository at this point in the history
added rbd install instructions and ceph admin secret consistency
  • Loading branch information
k8s-ci-robot authored Apr 22, 2020
2 parents 6d12fa0 + 06fe27a commit 5c38d73
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion ceph/rbd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,15 @@ make push

See https://kubernetes.io/.

* Install the rbd package on the worker nodes (fixes #1256)

for example, on debian the package is ceph-common

* Create a Ceph admin secret

```bash
ceph auth get client.admin 2>&1 |grep "key = " |awk '{print $3'} |xargs echo -n > /tmp/key
kubectl create secret generic ceph-admin-secret --from-file=/tmp/key --namespace=kube-system --type=kubernetes.io/rbd
kubectl create secret generic ceph-secret-admin --from-file=/tmp/key --namespace=kube-system --type=kubernetes.io/rbd
```

* Create a Ceph pool and a user secret
Expand Down
2 changes: 1 addition & 1 deletion ceph/rbd/examples/class.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ parameters:
pool: kube
adminId: admin
adminSecretNamespace: kube-system
adminSecretName: ceph-admin-secret
adminSecretName: ceph-secret-admin
userId: kube
userSecretNamespace: kube-system
userSecretName: ceph-secret
Expand Down
2 changes: 1 addition & 1 deletion ceph/rbd/examples/secrets.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
kind: Secret
metadata:
name: ceph-admin-secret
name: ceph-secret-admin
namespace: kube-system
type: "kubernetes.io/rbd"
data:
Expand Down

0 comments on commit 5c38d73

Please sign in to comment.