From bf2f275dcbc14ac6eb2b6556d23e5632e1453adb Mon Sep 17 00:00:00 2001 From: cmoulliard Date: Thu, 29 Aug 2024 11:59:52 +0200 Subject: [PATCH] Switch generate ssh key with DataVolume Signed-off-by: cmoulliard --- scripts/install_kubevirt_podman.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/install_kubevirt_podman.sh b/scripts/install_kubevirt_podman.sh index 625ed2e..26cb27c 100755 --- a/scripts/install_kubevirt_podman.sh +++ b/scripts/install_kubevirt_podman.sh @@ -45,14 +45,14 @@ kubectl create clusterrolebinding pod-kubevirt-viewer --clusterrole=kubevirt.io: kubectl create clusterrolebinding cdi-kubevirt-viewer --clusterrole=cdi.kubevirt.io:view --serviceaccount=${KUBE_NAMESPACE}:default kubectl create clusterrolebinding vm-podman --clusterrole=admin --serviceaccount=${KUBE_NAMESPACE}:default -echo "Deploy the Datavolume ..." -kubectl apply -n vm-images -f $ROOT_PATH/manifests/installation/virt/podman-remote-datavolume.yaml -kubectl wait datavolume -n vm-images podman-remote --for condition=Ready=True --timeout=360s - echo "Generate a ssh key ..." ssh-keygen -N "" -f id_rsa kubectl create secret generic podman-ssh-key -n ${KUBE_NAMESPACE} --from-file=key=id_rsa.pub +echo "Deploy the Datavolume ..." +kubectl apply -n vm-images -f $ROOT_PATH/manifests/installation/virt/podman-remote-datavolume.yaml +kubectl wait datavolume -n vm-images podman-remote --for condition=Ready=True --timeout=360s + echo "Kustomize the VM resource and deploy it ..." MANIFEST_PATH=$ROOT_PATH/manifests/installation/virt kustomize build ${MANIFEST_PATH} | kubectl apply -n ${KUBE_NAMESPACE} -f -