Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9102 from rook/mergify/bp/release-1.7/pr-9055
ceph: support ephemeral volumes with Ceph CSI RBD and CephFS driver (backport #9055)
- Loading branch information
Showing
3 changed files
with
79 additions
and
1 deletion.
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
21 changes: 21 additions & 0 deletions
21
cluster/examples/kubernetes/ceph/csi/cephfs/pod-ephemeral.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
kind: Pod | ||
apiVersion: v1 | ||
metadata: | ||
name: csi-cephfs-demo-ephemeral-pod | ||
spec: | ||
containers: | ||
- name: web-server | ||
image: docker.io/library/nginx:latest | ||
volumeMounts: | ||
- mountPath: "/myspace" | ||
name: mypvc | ||
volumes: | ||
- name: mypvc | ||
ephemeral: | ||
volumeClaimTemplate: | ||
spec: | ||
accessModes: ["ReadWriteMany"] | ||
storageClassName: "rook-cephfs" | ||
resources: | ||
requests: | ||
storage: 1Gi |
21 changes: 21 additions & 0 deletions
21
cluster/examples/kubernetes/ceph/csi/rbd/pod-ephemeral.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
kind: Pod | ||
apiVersion: v1 | ||
metadata: | ||
name: csi-rbd-demo-ephemeral-pod | ||
spec: | ||
containers: | ||
- name: web-server | ||
image: docker.io/library/nginx:latest | ||
volumeMounts: | ||
- mountPath: "/myspace" | ||
name: mypvc | ||
volumes: | ||
- name: mypvc | ||
ephemeral: | ||
volumeClaimTemplate: | ||
spec: | ||
accessModes: ["ReadWriteOnce"] | ||
storageClassName: "rook-ceph-block" | ||
resources: | ||
requests: | ||
storage: 1Gi |