From 03c9681e0744245da70706fe70af5e8e48369666 Mon Sep 17 00:00:00 2001 From: Vito Botta Date: Mon, 2 Jan 2023 21:43:53 +0200 Subject: [PATCH] Allow autoscaler to be scheduled on tainted master --- README.md | 6 +++--- shard.lock | 2 +- src/hetzner-k3s.cr | 2 +- templates/cluster_autoscaler.yaml | 3 +++ 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 24262bb9..fd77acf5 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,7 @@ You need to install these dependencies first: ##### Intel ```bash -wget https://github.com/vitobotta/hetzner-k3s/releases/download/v1.0.0/hetzner-k3s-mac-amd64 +wget https://github.com/vitobotta/hetzner-k3s/releases/download/v1.0.1/hetzner-k3s-mac-amd64 chmod +x hetzner-k3s-mac-x64 sudo mv hetzner-k3s-mac-x64 /usr/local/bin/hetzner-k3s ``` @@ -80,7 +80,7 @@ sudo mv hetzner-k3s-mac-x64 /usr/local/bin/hetzner-k3s ##### Apple Silicon/M1 ```bash -wget https://github.com/vitobotta/hetzner-k3s/releases/download/v1.0.0/hetzner-k3s-mac-arm64 +wget https://github.com/vitobotta/hetzner-k3s/releases/download/v1.0.1/hetzner-k3s-mac-arm64 chmod +x hetzner-k3s-mac-arm sudo mv hetzner-k3s-mac-arm /usr/local/bin/hetzner-k3s ``` @@ -88,7 +88,7 @@ sudo mv hetzner-k3s-mac-arm /usr/local/bin/hetzner-k3s ### Linux ```bash -wget https://github.com/vitobotta/hetzner-k3s/releases/download/v1.0.0/hetzner-k3s-linux-x86_64 +wget https://github.com/vitobotta/hetzner-k3s/releases/download/v1.0.1/hetzner-k3s-linux-x86_64 chmod +x hetzner-k3s-linux-x86_64 sudo mv hetzner-k3s-linux-x86_64 /usr/local/bin/hetzner-k3s ``` diff --git a/shard.lock b/shard.lock index adf02948..f28937b9 100644 --- a/shard.lock +++ b/shard.lock @@ -22,7 +22,7 @@ shards: future: git: https://github.com/crystal-community/future.cr.git - version: 1.0.0 + version: 1.0.1 http-client-digest_auth: git: https://github.com/mamantoha/http-client-digest_auth.git diff --git a/src/hetzner-k3s.cr b/src/hetzner-k3s.cr index 64759d99..d949ccfa 100644 --- a/src/hetzner-k3s.cr +++ b/src/hetzner-k3s.cr @@ -8,7 +8,7 @@ require "./cluster/upgrade" module Hetzner::K3s class CLI < Admiral::Command - VERSION = "1.0.0" + VERSION = "1.0.1" class Create < Admiral::Command define_help description: "create - Create a cluster" diff --git a/templates/cluster_autoscaler.yaml b/templates/cluster_autoscaler.yaml index 93964da3..be9d895e 100644 --- a/templates/cluster_autoscaler.yaml +++ b/templates/cluster_autoscaler.yaml @@ -141,6 +141,9 @@ spec: tolerations: - effect: NoSchedule key: node-role.kubernetes.io/master + - effect: NoExecute + key: CriticalAddonsOnly + value: "true" # Node affinity is used to force cluster-autoscaler to stick # to the master node. This allows the cluster to reliably downscale # to zero worker nodes when needed.