hetzner-k3s 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +7 -2
- data/bin/build.sh +4 -2
- data/lib/hetzner/k3s/cli.rb +1 -0
- data/lib/hetzner/k3s/cluster.rb +2 -2
- data/lib/hetzner/k3s/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 703675cd5cbfeb28c857486046b88a1202835316b4522ac3b964c42479ca91e9
|
|
4
|
+
data.tar.gz: d496229db7199e5d72bf19e5534ce83c7235ffe91eb93aec2151435d4c3a9c2c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 75f9af0a29e2e34e7e4fd703ee1a98f2a2e2b9cd8143783583f74ce26427b1bbfbf53930f258b1a5fc9faf9fe1e1a84e7f15f5c92122ecfd1b4ae6ae7913031e
|
|
7
|
+
data.tar.gz: b89c51f47038eca49083cf8936d7cc4927a8edbe9fe41582d834dd546a2be8d5b80ef03bf3bf0bce7605637e35445e153c1c72bf206ed58df9632c4a245d9f3b
|
data/README.md
CHANGED
|
@@ -25,7 +25,7 @@ All that is needed to use this tool is
|
|
|
25
25
|
|
|
26
26
|
## Installation
|
|
27
27
|
|
|
28
|
-
Once you have the Ruby runtime up and running, you just need to install the gem:
|
|
28
|
+
Once you have the Ruby runtime up and running (2.7.2 or newer in the 2.7 series is recommended at this stage), you just need to install the gem:
|
|
29
29
|
|
|
30
30
|
```bash
|
|
31
31
|
gem install hetzner-k3s
|
|
@@ -59,6 +59,7 @@ ssh_allowed_networks:
|
|
|
59
59
|
- 0.0.0.0/0
|
|
60
60
|
verify_host_key: false
|
|
61
61
|
location: nbg1
|
|
62
|
+
schedule_workloads_on_masters: false
|
|
62
63
|
masters:
|
|
63
64
|
instance_type: cpx21
|
|
64
65
|
instance_count: 3
|
|
@@ -240,12 +241,16 @@ I recommend that you create a separate Hetzner project for each cluster, because
|
|
|
240
241
|
|
|
241
242
|
## changelog
|
|
242
243
|
|
|
244
|
+
- 0.4.2
|
|
245
|
+
- Update Hetzner CSI driver to v1.6.0
|
|
246
|
+
- Update System Upgrade Controller to v0.8.0
|
|
247
|
+
|
|
243
248
|
- 0.4.1
|
|
244
249
|
- Allow to optionally specify the path of the private SSH key
|
|
245
250
|
- Set correct permissions for the kubeconfig file
|
|
246
251
|
- Retry fetching manifests a few times to allow for temporary network issues
|
|
247
252
|
- Allow to optionally schedule workloads on masters
|
|
248
|
-
- Allow clusters with no worker node pools if
|
|
253
|
+
- Allow clusters with no worker node pools if scheduling is enabled for the masters
|
|
249
254
|
|
|
250
255
|
- 0.4.0
|
|
251
256
|
- Ensure the masters are removed from the API load balancer before deleting the load balancer
|
data/bin/build.sh
CHANGED
|
@@ -6,7 +6,9 @@ set -e
|
|
|
6
6
|
|
|
7
7
|
IMAGE="vitobotta/hetzner-k3s"
|
|
8
8
|
|
|
9
|
-
docker build -t ${IMAGE}:v0.4.
|
|
9
|
+
docker build -t ${IMAGE}:v0.4.2 \
|
|
10
10
|
--platform=linux/amd64 \
|
|
11
|
-
--cache-from ${IMAGE}:v0.4.
|
|
11
|
+
--cache-from ${IMAGE}:v0.4.1 \
|
|
12
12
|
--build-arg BUILDKIT_INLINE_CACHE=1 .
|
|
13
|
+
|
|
14
|
+
docker push vitobotta/hetzner-k3s:v0.4.2
|
data/lib/hetzner/k3s/cli.rb
CHANGED
|
@@ -339,6 +339,7 @@ module Hetzner
|
|
|
339
339
|
config_hash = YAML.load_file(File.expand_path(configuration["kubeconfig_path"]))
|
|
340
340
|
config_hash['current-context'] = configuration["cluster_name"]
|
|
341
341
|
@kubernetes_client = K8s::Client.config(K8s::Config.new(config_hash))
|
|
342
|
+
rescue
|
|
342
343
|
errors << "Cannot connect to the Kubernetes cluster"
|
|
343
344
|
false
|
|
344
345
|
end
|
data/lib/hetzner/k3s/cluster.rb
CHANGED
|
@@ -358,7 +358,7 @@ class Cluster
|
|
|
358
358
|
puts
|
|
359
359
|
puts "Deploying k3s System Upgrade Controller..."
|
|
360
360
|
|
|
361
|
-
manifest = HTTP.follow.get("https://github.com/rancher/system-upgrade-controller/releases/download/v0.
|
|
361
|
+
manifest = HTTP.follow.get("https://github.com/rancher/system-upgrade-controller/releases/download/v0.8.0/system-upgrade-controller.yaml").body
|
|
362
362
|
|
|
363
363
|
File.write("/tmp/system-upgrade-controller.yaml", manifest)
|
|
364
364
|
|
|
@@ -407,7 +407,7 @@ class Cluster
|
|
|
407
407
|
end
|
|
408
408
|
|
|
409
409
|
|
|
410
|
-
manifest = HTTP.follow.get("https://raw.githubusercontent.com/hetznercloud/csi-driver/v1.
|
|
410
|
+
manifest = HTTP.follow.get("https://raw.githubusercontent.com/hetznercloud/csi-driver/v1.6.0/deploy/kubernetes/hcloud-csi.yml").body
|
|
411
411
|
|
|
412
412
|
File.write("/tmp/csi-driver.yaml", manifest)
|
|
413
413
|
|
data/lib/hetzner/k3s/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hetzner-k3s
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vito Botta
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-10-
|
|
11
|
+
date: 2021-10-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: thor
|