generated from canonical/is-charms-template-repo
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We'll extend the Ceph storage class test to actually create a PVC and ensure that pods can read/write data from these volumes. While at it, we're making some slight changes to the ceph bundle. At the moment, it deploys a single unit with two OSDs and node based replication (default). For this reason, the PGs are inactive and the rbd commands hang (and implicitly the Ceph provisioner). We'll fix this by using three units, each containing one OSD. Co-authored-by: Adam Dyess <[email protected]>
- Loading branch information
1 parent
bb03e5f
commit f2aface
Showing
8 changed files
with
168 additions
and
6 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
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,16 @@ | ||
# Copyright 2024 Canonical Ltd. | ||
# See LICENSE file for licensing details. | ||
|
||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
apiVersion: v1 | ||
metadata: | ||
name: raw-block-pvc | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
volumeMode: Filesystem | ||
resources: | ||
requests: | ||
storage: 64Mi | ||
storageClassName: ceph-xfs |
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 @@ | ||
# Copyright 2024 Canonical Ltd. | ||
# See LICENSE file for licensing details. | ||
|
||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: pv-reader-test | ||
namespace: default | ||
spec: | ||
restartPolicy: Never | ||
volumes: | ||
- name: pvc-test | ||
persistentVolumeClaim: | ||
claimName: raw-block-pvc | ||
containers: | ||
- name: pv-reader | ||
image: busybox | ||
command: ["/bin/sh", "-c", "cat /pvc/test_file"] | ||
volumeMounts: | ||
- name: pvc-test | ||
mountPath: /pvc |
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 @@ | ||
# Copyright 2024 Canonical Ltd. | ||
# See LICENSE file for licensing details. | ||
|
||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: pv-writer-test | ||
namespace: default | ||
spec: | ||
restartPolicy: Never | ||
volumes: | ||
- name: pvc-test | ||
persistentVolumeClaim: | ||
claimName: raw-block-pvc | ||
containers: | ||
- name: pv-writer | ||
image: busybox | ||
command: ["/bin/sh", "-c", "echo 'PVC test data.' > /pvc/test_file"] | ||
volumeMounts: | ||
- name: pvc-test | ||
mountPath: /pvc |
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
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