Skip to content

Commit

Permalink
Switch generate ssh key with DataVolume
Browse files Browse the repository at this point in the history
Signed-off-by: cmoulliard <[email protected]>
  • Loading branch information
cmoulliard committed Aug 29, 2024
1 parent 836db39 commit bf2f275
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/install_kubevirt_podman.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 -
Expand Down

0 comments on commit bf2f275

Please sign in to comment.