From a55d42e5598172b393f589e49b4aca3c2009c077 Mon Sep 17 00:00:00 2001 From: Maksim Paskal Date: Sun, 14 Apr 2024 06:51:59 +0100 Subject: [PATCH] use custom provider id Signed-off-by: Maksim Paskal --- scripts/common-install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/common-install.sh b/scripts/common-install.sh index 160ca1f..d4d6c2d 100755 --- a/scripts/common-install.sh +++ b/scripts/common-install.sh @@ -221,7 +221,8 @@ nameserver 185.12.64.1 nameserver 185.12.64.2 EOF -: ${INSTANCE_ID=$(curl http://169.254.169.254/hetzner/v1/metadata/instance-id)} +# use custom provider id +: ${PROVIDER_ID="hcloud://$(curl http://169.254.169.254/hetzner/v1/metadata/instance-id)"} # kubeadm config print init-defaults --component-configs KubeletConfiguration cat <