forked from ceph/ceph-container
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added RBD example, polished documentation, added quickstart
- Loading branch information
1 parent
4a117f2
commit c16d59e
Showing
4 changed files
with
107 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
examples/kubernetes/ceph-mount-test.yaml → examples/kubernetes/ceph-cephfs-test.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: ceph-rbd-test | ||
spec: | ||
containers: | ||
- name: cephfs-rw | ||
image: busybox | ||
command: | ||
- sh | ||
- -c | ||
- while true; do sleep 1; done | ||
volumeMounts: | ||
- mountPath: "/mnt/cephfs" | ||
name: cephrbd | ||
volumes: | ||
- name: cephrbd | ||
rbd: | ||
monitors: | ||
#This only works if you have skyDNS resolveable from the kubernetes node. Otherwise you must manually put in one or more mon pod ips. | ||
- ceph-mon.ceph:6789 | ||
user: admin | ||
image: ceph-rbd-test | ||
pool: rbd | ||
secretRef: | ||
name: ceph-client-key | ||
# keyring: AQBEbzpXAAAAABAAaTBhNokmayB4DFhirwMU7w== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters