diff --git a/assets/kubevirt/px-rwx-kubevirt.yml b/assets/kubevirt/px-rwx-kubevirt.yml new file mode 100644 index 0000000..652ce06 --- /dev/null +++ b/assets/kubevirt/px-rwx-kubevirt.yml @@ -0,0 +1,13 @@ +apiVersion: storage.k8s.io/v1 +kind: StorageClass +metadata: + name: px-rwx-kubevirt + annotations: + storageclass.kubernetes.io/is-default-class: "true" +provisioner: pxd.portworx.com +parameters: + repl: "3" + sharedv4: "true" + sharedv4_mount_options: vers=3.0,nolock +volumeBindingMode: WaitForFirstConsumer +allowVolumeExpansion: true diff --git a/assets/kubevirt/pxbbq-freebsd.yml b/assets/kubevirt/pxbbq-freebsd.yml index 4cdd2b2..c16b8e2 100644 --- a/assets/kubevirt/pxbbq-freebsd.yml +++ b/assets/kubevirt/pxbbq-freebsd.yml @@ -165,7 +165,7 @@ spec: resources: requests: storage: 5Gi - storageClassName: px-csi-db + storageClassName: px-rwx-kubevirt preallocation: false source: pvc: diff --git a/assets/kubevirt/pxbbq.yml b/assets/kubevirt/pxbbq.yml index e3d2c24..df1279b 100644 --- a/assets/kubevirt/pxbbq.yml +++ b/assets/kubevirt/pxbbq.yml @@ -164,7 +164,7 @@ spec: resources: requests: storage: 5Gi - storageClassName: px-csi-db + storageClassName: px-rwx-kubevirt preallocation: false source: pvc: diff --git a/scripts/kubevirt b/scripts/kubevirt index 79cee37..962e1f0 100644 --- a/scripts/kubevirt +++ b/scripts/kubevirt @@ -2,6 +2,7 @@ export KUBEVIRTVERSION="v1.1.1" export CDIVERSION="v1.58.1" #export KUBEVIRTVERSION=$(curl -s https://api.github.com/repos/kubevirt/kubevirt/releases | grep tag_name | grep -v -- '-rc' | sort -r | head -1 | awk -F': ' '{print $2}' | sed 's/,//' | xargs) +kubectl apply -f /assets/kubevirt/px-rwx-kubevirt.yml echo "downloading kubevirt $KUBEVIRTVERSION" kubectl apply -f https://github.com/kubevirt/kubevirt/releases/download/${KUBEVIRTVERSION}/kubevirt-operator.yaml diff --git a/scripts/ocp-kubevirt b/scripts/ocp-kubevirt index 37f6f3e..286d2d8 100644 --- a/scripts/ocp-kubevirt +++ b/scripts/ocp-kubevirt @@ -1,5 +1,8 @@ OPVERSION=$(kubectl get packagemanifests.packages.operators.coreos.com kubevirt-hyperconverged -o json | jq -r ".status.channels[0].currentCSV") +kubectl patch storageclass gp3-csi -p '{"metadata": {"annotations": {"storageclass.kubernetes.io/is-default-class": "false"}}}' +kubectl apply -f /assets/kubevirt/px-rwx-kubevirt.yml + echo "current kubevirt-hyperconverged operator version is $OPVERSION" cat <