Skip to content

Commit

Permalink
Allow autoscaler to be scheduled on tainted master
Browse files Browse the repository at this point in the history
  • Loading branch information
vitobotta committed Jan 2, 2023
1 parent 46458cc commit 03c9681
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,23 +72,23 @@ 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
```

##### 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
```

### 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
```
Expand Down
2 changes: 1 addition & 1 deletion shard.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/hetzner-k3s.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 3 additions & 0 deletions templates/cluster_autoscaler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 03c9681

Please sign in to comment.