adding nixos iso datavolume and default storageprofile for kubevirt
This commit is contained in:
parent
9b6c7ff93c
commit
60302bcda2
2 changed files with 39 additions and 0 deletions
17
kubernetes/apps/kubevirt/common/nixosdv.yaml
Normal file
17
kubernetes/apps/kubevirt/common/nixosdv.yaml
Normal file
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
# yaml-language-server: $schema=https://ks.hsn.dev/cdi.kubevirt.io/datavolume_v1beta1.json
|
||||
apiVersion: cdi.kubevirt.io/v1beta1
|
||||
kind: DataVolume
|
||||
metadata:
|
||||
name: "nixos-minimal"
|
||||
spec:
|
||||
storage:
|
||||
resources:
|
||||
requests:
|
||||
storage: 2Gi
|
||||
storageClassName: "openebs-zfs"
|
||||
accessModes:
|
||||
- "ReadWriteOnce"
|
||||
source:
|
||||
http:
|
||||
url: "https://channels.nixos.org/nixos-23.11/latest-nixos-minimal-x86_64-linux.iso"
|
22
kubernetes/apps/kubevirt/common/storageprofile.yml
Normal file
22
kubernetes/apps/kubevirt/common/storageprofile.yml
Normal file
|
@ -0,0 +1,22 @@
|
|||
---
|
||||
# yaml-language-server: $schema=https://ks.hsn.dev/cdi.kubevirt.io/storageprofile_v1beta1.json
|
||||
apiVersion: cdi.kubevirt.io/v1beta1
|
||||
kind: StorageProfile
|
||||
metadata:
|
||||
labels:
|
||||
app: containerized-data-importer
|
||||
app.kubernetes.io/component: storage
|
||||
app.kubernetes.io/managed-by: cdi-controller
|
||||
cdi.kubevirt.io: ""
|
||||
name: openebs-zfs
|
||||
spec: {}
|
||||
status:
|
||||
cloneStrategy: snapshot
|
||||
dataImportCronSourceFormat: pvc
|
||||
provisioner: zfs.csi.openebs.io
|
||||
snapshotClass: openebs-zfs
|
||||
storageClass: openebs-zfs
|
||||
claimPropertySets:
|
||||
- volumeMode: Block
|
||||
accessModes:
|
||||
- "ReadWriteOnce"
|
Loading…
Reference in a new issue