Wait for microk8s before attempting to install further things

This commit is contained in:
2023-11-04 22:21:04 +01:00
parent 79bf4db13f
commit b4c6d4822b
@@ -1,5 +1,9 @@
#!/bin/sh #!/bin/sh
until /snap/bin/microk8s.status --wait-ready;
do sleep 3; echo "waiting for worker status..";
done
/snap/bin/microk8s helm repo add 2martens https://repo.2martens.de/charts/ /snap/bin/microk8s helm repo add 2martens https://repo.2martens.de/charts/
/snap/bin/microk8s helm install setup 2martens/cluster_setup --values /run/tmpfiles.d/cluster-setup-values.yaml /snap/bin/microk8s helm install setup 2martens/cluster_setup --values /run/tmpfiles.d/cluster-setup-values.yaml
%{ if high_availability ~} %{ if high_availability ~}