Skip to content

Commit

Permalink
feat(Virt): CI StorageClass
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurVardevanyan committed Dec 24, 2024
1 parent 2090a96 commit 64edadb
Show file tree
Hide file tree
Showing 9 changed files with 53 additions and 0 deletions.
26 changes: 26 additions & 0 deletions kubernetes/ceph/base/block-ci/ceph-block-pool.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,29 @@ spec:
failureDomain: host
replicated:
size: 2
---
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: rook-ceph-block-virtualization-ci
annotations:
description: Provides RWO and RWX Block volumes suitable for Virtual Machine disks
storageclass.kubevirt.io/is-default-virt-class: "true"
provisioner: rook-ceph.rbd.csi.ceph.com
parameters:
csi.storage.k8s.io/fstype: ext4
mapOptions: "krbd:rxbounce"
mounter: rbd
csi.storage.k8s.io/provisioner-secret-name: rook-csi-rbd-provisioner
csi.storage.k8s.io/provisioner-secret-namespace: rook-ceph
csi.storage.k8s.io/controller-expand-secret-name: rook-csi-rbd-provisioner
csi.storage.k8s.io/controller-expand-secret-namespace: rook-ceph
csi.storage.k8s.io/node-stage-secret-name: rook-csi-rbd-node
csi.storage.k8s.io/node-stage-secret-namespace: rook-ceph
imageFormat: "2"
clusterID: rook-ceph
imageFeatures: "layering,deep-flatten,exclusive-lock,object-map,fast-diff"
pool: replicapool-ci
reclaimPolicy: Delete
allowVolumeExpansion: true
volumeBindingMode: Immediate
20 changes: 20 additions & 0 deletions kubernetes/kubevirt/base/storage-profile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,23 @@ spec:
- ReadWriteMany
volumeMode: Filesystem
cloneStrategy: csi-clone
---
apiVersion: cdi.kubevirt.io/v1beta1
kind: StorageProfile
metadata:
annotations:
argocd.argoproj.io/sync-wave: "3"
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
name: rook-ceph-block-virtualization-ci
spec:
claimPropertySets:
- accessModes:
- ReadWriteMany
volumeMode: Block
- accessModes:
- ReadWriteOnce
volumeMode: Block
- accessModes:
- ReadWriteOnce
volumeMode: Filesystem
cloneStrategy: csi-clone
1 change: 1 addition & 0 deletions sandbox/kubevirt/k3s/vms/k3s-server-0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ spec:
resources:
requests:
storage: 30Gi
storageClassName: rook-ceph-block-virtualization-ci
running: false
template:
metadata:
Expand Down
1 change: 1 addition & 0 deletions sandbox/kubevirt/k3s/vms/k3s-server-1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ spec:
resources:
requests:
storage: 30Gi
storageClassName: rook-ceph-block-virtualization-ci
running: false
template:
metadata:
Expand Down
1 change: 1 addition & 0 deletions sandbox/kubevirt/k3s/vms/k3s-server-2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ spec:
resources:
requests:
storage: 30Gi
storageClassName: rook-ceph-block-virtualization-ci
running: false
template:
metadata:
Expand Down
1 change: 1 addition & 0 deletions sandbox/kubevirt/okd/vm/datavolume.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ spec:
resources:
requests:
storage: 5Gi
storageClassName: rook-ceph-block-virtualization-ci
1 change: 1 addition & 0 deletions sandbox/kubevirt/okd/vm/okd1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ spec:
resources:
requests:
storage: 100Gi
storageClassName: rook-ceph-block-virtualization-ci
running: true
template:
metadata:
Expand Down
1 change: 1 addition & 0 deletions sandbox/kubevirt/okd/vm/okd2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ spec:
resources:
requests:
storage: 100Gi
storageClassName: rook-ceph-block-virtualization-ci
running: true
template:
metadata:
Expand Down
1 change: 1 addition & 0 deletions sandbox/kubevirt/okd/vm/okd3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ spec:
resources:
requests:
storage: 100Gi
storageClassName: rook-ceph-block-virtualization-ci
running: true
template:
metadata:
Expand Down

0 comments on commit 64edadb

Please sign in to comment.