hetzner-k3s 0.3.3 → 0.3.4
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/Dockerfile +11 -0
- data/Gemfile.lock +1 -1
- data/README.md +16 -0
- data/entrypoint.sh +12 -0
- data/lib/hetzner/k3s/version.rb +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 362875671a52928fd320f24cb0ef38728fe85f5395282f8d9df9550c8531162f
|
4
|
+
data.tar.gz: b873e5f6823a443f48577a5126c20f2b5b4db3a1e2c4fb791af059718cbf39a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ecee605e0fc079b62a3cd6af152d30dbdb7ea5cb4785f8a2bcda6218996f7a86bcdcac23f0010d61f6a16e7964f6e587f0c6e0a54ba41c790af15c6490b3ecdb
|
7
|
+
data.tar.gz: 476d5dd9a39dfd45258cd32d208e3e15d6f79f6cf326d482694e6b6311259731ebb090965fc1dcefbb216ee25cd5e01cbdfb36d5a65bafa9a80e56eb047e3d7c
|
data/Dockerfile
ADDED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -33,6 +33,16 @@ gem install hetzner-k3s
|
|
33
33
|
|
34
34
|
This will install the `hetzner-k3s` executable in your PATH.
|
35
35
|
|
36
|
+
### With Docker
|
37
|
+
|
38
|
+
Alternatively, if you don't want to set up a Ruby runtime but have Docker installed, you can use a container. Run the following from inside the directory where you have the config file for the cluster (described in the next section):
|
39
|
+
|
40
|
+
```bash
|
41
|
+
docker run --rm -it -v ${PWD}:/cluster -v ${HOME}/.ssh:/tmp/.ssh vitobotta/hetzner-k3s create-cluster --config-file /cluster/test.yaml
|
42
|
+
```
|
43
|
+
|
44
|
+
Replace `test.yaml` with the name of your config file.
|
45
|
+
|
36
46
|
## Creating a cluster
|
37
47
|
|
38
48
|
The tool requires a simple configuration file in order to create/upgrade/delete clusters, in the YAML format like in the example below:
|
@@ -60,6 +70,9 @@ worker_node_pools:
|
|
60
70
|
|
61
71
|
It should hopefully be self explanatory; you can run `hetzner-k3s releases` to see a list of the available releases from the most recent to the oldest available.
|
62
72
|
|
73
|
+
If you are using Docker, then set `kubeconfig_path` to `/cluster/kubeconfig` so that the kubeconfig is created in the same directory where your config file is.
|
74
|
+
|
75
|
+
|
63
76
|
If you set `masters.instance_count` to 1 then the tool will create a non highly available control plane; for production clusters you may want to set it to a number greater than 1. This number must be odd to avoid split brain issues with etcd and the recommended number is 3.
|
64
77
|
|
65
78
|
You can specify any number of worker node pools for example to have mixed nodes with different specs for different workloads.
|
@@ -214,6 +227,9 @@ Once the cluster is ready you can create persistent volumes out of the box with
|
|
214
227
|
|
215
228
|
## changelog
|
216
229
|
|
230
|
+
- 0.3.4
|
231
|
+
- Added Docker support
|
232
|
+
|
217
233
|
- 0.3.3
|
218
234
|
- Add some gems required on Linux
|
219
235
|
|
data/entrypoint.sh
ADDED
data/lib/hetzner/k3s/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hetzner-k3s
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vito Botta
|
@@ -121,6 +121,7 @@ files:
|
|
121
121
|
- ".rspec"
|
122
122
|
- ".travis.yml"
|
123
123
|
- CODE_OF_CONDUCT.md
|
124
|
+
- Dockerfile
|
124
125
|
- Gemfile
|
125
126
|
- Gemfile.lock
|
126
127
|
- LICENSE.txt
|
@@ -129,6 +130,7 @@ files:
|
|
129
130
|
- bin/console
|
130
131
|
- bin/setup
|
131
132
|
- cluster_config.yaml.example
|
133
|
+
- entrypoint.sh
|
132
134
|
- exe/hetzner-k3s
|
133
135
|
- hetzner-k3s.gemspec
|
134
136
|
- lib/hetzner.rb
|