Skip to content

Commit

Permalink
Merge pull request #546 from danpaul81/issue-544-kubevirt
Browse files Browse the repository at this point in the history
Issue 544 kubevirt
  • Loading branch information
andrewh1978 authored Sep 9, 2024
2 parents a5a52ea + 595863d commit 3602964
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 4 deletions.
13 changes: 13 additions & 0 deletions assets/kubevirt/px-rwx-kubevirt.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion assets/kubevirt/pxbbq-freebsd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ spec:
resources:
requests:
storage: 5Gi
storageClassName: px-csi-db
storageClassName: px-rwx-kubevirt
preallocation: false
source:
pvc:
Expand Down
2 changes: 1 addition & 1 deletion assets/kubevirt/pxbbq.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ spec:
resources:
requests:
storage: 5Gi
storageClassName: px-csi-db
storageClassName: px-rwx-kubevirt
preallocation: false
source:
pvc:
Expand Down
1 change: 1 addition & 0 deletions scripts/kubevirt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions scripts/ocp-kubevirt
Original file line number Diff line number Diff line change
@@ -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 <<EOF | kubectl apply -f -
Expand Down
3 changes: 1 addition & 2 deletions templates/kubevirt.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
description: Install kubevirt on a bare-metal cluster
scripts: ["install-px","kubevirt","kubevirt-apps-freebsd"]
#aws_type: "c5n.metal"

aws_type: "c5n.metal"

0 comments on commit 3602964

Please sign in to comment.