1
0
Files
PlayingWithK8S/create-cluster.ps1
2025-07-01 21:39:08 +02:00

9 lines
524 B
PowerShell

kind create cluster --config clusterconfig.yaml --name kubevirt-test
kubectl create -f "https://github.com/kubevirt/kubevirt/releases/download/v1.5.2/kubevirt-operator.yaml"
kubectl create -f "https://github.com/kubevirt/kubevirt/releases/download/v1.5.2/kubevirt-cr.yaml"
write-host "Waiting until kubevirt has had a change to get deployed"
while(kubectl get kubervirt.kubevirt.io/kubevirt -n kubevirt -o=jsonpath="{.status.phase}" !== "Deployed"){}
start-sleep -Seconds 300
kubectl apply -f vm.yaml