From e6b12a172cf4aa8a681d20b1a51a205c88ce3456 Mon Sep 17 00:00:00 2001 From: Karim Naufal Date: Sat, 12 Feb 2022 01:45:25 +0100 Subject: [PATCH] fix for error messages --- locals.tf | 2 +- master.tf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/locals.tf b/locals.tf index 962fbe4..7e9b3e7 100644 --- a/locals.tf +++ b/locals.tf @@ -23,7 +23,7 @@ locals { MicroOS_install_commands = [ "set -ex", "apt-get install -y aria2", - "aria2c --follow-metalink=mem https://raw.githubusercontent.com/kube-hetzner/kube-hetzner/master/.files/openSUSE-MicroOS.x86_64-k3s-kvm-and-xen.qcow2.meta4", + "aria2c --follow-metalink=mem https://download.opensuse.org/tumbleweed/appliances/openSUSE-MicroOS.x86_64-k3s-kvm-and-xen.qcow2.meta4", "qemu-img convert -p -f qcow2 -O host_device $(ls -a | grep -ie '^opensuse.*microos.*k3s.*qcow2$') /dev/sda", "sgdisk -e /dev/sda", "parted -s /dev/sda resizepart 4 99%", diff --git a/master.tf b/master.tf index 0981154..b224d84 100644 --- a/master.tf +++ b/master.tf @@ -90,7 +90,7 @@ resource "hcloud_server" "first_control_plane" { echo "Waiting for kubectl config..." sleep 1 done - until [[ "\$(kubectl get --raw='/readyz')" == "ok" ]]; do + until [[ "\$(kubectl get --raw='/readyz' 2> /dev/null)" == "ok" ]]; do echo "Waiting for cluster to become ready..." sleep 1 done