Skip to content

Commit

Permalink
use custom provider id
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Paskal <[email protected]>
  • Loading branch information
maksim-paskal committed Apr 14, 2024
1 parent 1e5c62a commit a55d42e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/common-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 <<EOF | tee /etc/kubernetes/kubelet/config.yaml
Expand Down Expand Up @@ -260,7 +261,7 @@ kubeReserved:
protectKernelDefaults: true
serializeImagePulls: false
serverTLSBootstrap: true
providerID: "hcloud://$INSTANCE_ID"
providerID: "$PROVIDER_ID"
runtimeRequestTimeout: "15m"
EOF

Expand Down

0 comments on commit a55d42e

Please sign in to comment.