Thorsten Klein
7071129df8
[Enhancement] More powerful registry-create opt ( #727 )
...
- `--registry-create NAME[:HOST][:HOSTPORT]` changed from bool flag
- respective config added to config file
3 years ago
iwilltry42
7073a8fad7
migrate to module rancher/k3d/v5
3 years ago
iwilltry42
630788f1e7
clusterCreate: add --lb-config-override flag
...
- allow overriding k3d-proxy settings (workerProcesses,
defaultProxyTimeout)
- add new field to loadbalancer config and SimpleConfig structs
3 years ago
iwilltry42
91426eabd1
cmd: make config initialization more general
...
- move viper initialization from k3d config file to separate util
sub-package in cmd/
- use that new subpackage init function to leverage the config file in
`k3d cluster delete`
- cover that with an e2e test case
3 years ago
iwilltry42
9efe980789
overall: make error handling and error logs a bit more streamlined
3 years ago
Thorsten Klein
212979d0bb
[Enhancement] DNS Injection ( #718 )
...
- remove`--no-hostip` flag and the related `disableHostIPInjection` config option
- inject host IP on every cluster startup (except when hostnetwork is chosen)(/etc/hosts + CoreDNS)
- inject host entries for every cluster network member container into the CoreDNS configmap
3 years ago
Mateusz Urbanek
917c19eae5
feat(logging): using new package containing logrus.Logger instead of global scope logrus ( closes #583 ) ( #699 , @Shanduur )
3 years ago
Łukasz Oleś
5d0d0acc77
[FIX] Do not override hostIP when hostPort is missing ( #693 , @lukaszo )
3 years ago
Thorsten Klein
a5c1d3becb
[Enhancement] Docs: update for v5 (first iteration) ( #682 )
3 years ago
iwilltry42
b94a057d9a
cleanup completion functions
3 years ago
iwilltry42
2516cad12e
allow for adding ports to a running cluster via the loadbalancer
3 years ago
iwilltry42
d41b49d423
document using new nodefilter syntax with : instead of [] for indexing
3 years ago
iwilltry42
8e29ad4f1a
add some more portmapping work
3 years ago
iwilltry42
f6c3bd2e8b
clusterCreate: use tempfile with expanded env vars as viper input file
3 years ago
ejose19
bfead49c46
[Enhancement] Refactoring: normalize label flags (k3s node & runtime) ( #598 , @ejose19 )
3 years ago
Thorsten Klein
261ac0faf4
[BREAKING] Config File Enhancements: v1alpha3, migrations, generic k3s-args ( #605 )
...
Excerpt:
- new version v1alpha3 with k3s extraArgs using node filters
- reflected in CLI via --k3s-arg
- new migration option to migrate (internally and via cli) from v1alpha2
to v1alpha3
- enhancements to how config files are being read
- e2e tests for config file migration
3 years ago
iwilltry42
831e58fdce
init clusteredit
3 years ago
iwilltry42
bb237d3389
fix: do not allow the same direct port-mapping on more than one node
3 years ago
iwilltry42
6c06208b8f
document using new nodefilter syntax with : instead of [] for indexing
3 years ago
iwilltry42
9574002b38
add some more portmapping work
3 years ago
iwilltry42
7db9275a5b
clusterCreate: use tempfile with expanded env vars as viper input file
3 years ago
ejose19
1deb0aa64d
[Enhancement] Refactoring: normalize label flags (k3s node & runtime) ( #598 , @ejose19 )
3 years ago
Thorsten Klein
99fe3c75c4
[BREAKING] Config File Enhancements: v1alpha3, migrations, generic k3s-args ( #605 )
...
Excerpt:
- new version v1alpha3 with k3s extraArgs using node filters
- reflected in CLI via --k3s-arg
- new migration option to migrate (internally and via cli) from v1alpha2
to v1alpha3
- enhancements to how config files are being read
- e2e tests for config file migration
3 years ago
iwilltry42
6c94d7db3d
overall/license: update to year range -2021
3 years ago
Jason
bfcac7ec4a
fix create command's flags typo ( #568 , @Jason-ZW )
...
Signed-off-by: Jason-ZW <zhenyang@rancher.com>
3 years ago
Thorsten Klein
24cf263c73
[FEATURE] IPAM via subnet flag ( #560 )
3 years ago
iwilltry42
45d451a661
[hotfix] use viper fork with fixed stringArray handling from https://github.com/spf13/viper/pull/398
4 years ago
Konrad Malik
e495fe83a8
[FEATURE] Memory Limits ( #494 , @konradmalik )
4 years ago
Alex Sears
f141bc3be8
Fix typo in cluster stop command doc ( #513 , @searsaw )
4 years ago
iwilltry42
e1384c91a2
server: trim the port off the dockerHost as it renders the kubeconfig unusable ( fixes #487 )
4 years ago
Dominik Tomasi
dbfaeb4af3
Fix for KubeAPI Port assignment when using config files ( #490 , @dtomasi )
4 years ago
Konrad Malik
df9859eae6
[ENHANCEMENT] Add config processing and fix hostmode ( #477 , @konradmalik )
4 years ago
iwilltry42
e2a05c1f39
fix/clusterCreate: use StringSlice for k3s-server|agent-arg flag
...
- required due to StringArray incompatibility in Viper
Fixes #482
4 years ago
Thorsten Klein
092f26a4e2
[FEATURE/FIX] Viper Configuration and JSON Schema ( #472 )
4 years ago
iwilltry42
bad77f0027
clusterStart: wait for servers to be up and running by default
4 years ago
iwilltry42
7b8506b1d9
fix: proper handling of registries and networks when deleting clusters/nodes
4 years ago
iwilltry42
4e2b1baa62
add warning, if someone mounts a file at the default registries.yaml location, while they also use a different kind of registry spec
4 years ago
iwilltry42
7343c3dbe2
init merging registry config
4 years ago
Thorsten Klein
185ffcd34f
[Enhancement] clusterDelete: proper node and network handling ( #437 )
...
This comes with several fixes/improvements
- only consider containers that have the default object label (app=k3d)
- handle network deletion
- check if there are other k3d containers connected
- if there are only registries, disconnect them
- if there are non-registry nodes, leave everything as it is
- if there are any containers connected, that are not automatically
disconnected, log a warning and continue
4 years ago
Thorsten Klein
c44c576d69
[Refactoring/Preparation] use real port structs as prep for registries ( #427 )
4 years ago
Thorsten Klein
ecc025b35e
[Feature] Registry for v4 & Restructure Cluster Creation ( #334 )
4 years ago
Thorsten Klein
778f80d8fd
[FEATURE] Config File ( #351 )
4 years ago
iwilltry42
d7b25ac6ab
v3 -> v4
4 years ago
Alvaro
a93932e5b6
[Feature] Options for formatted output of `cluster list` ( #416 , @inercia ))
...
This adds a `--ouput` flag to `cluster list` for dumping the
list of clusters as a JSON or YAML document.
Signed-off-by: Alvaro Saurin <alvaro.saurin@gmail.com>
4 years ago
Thorsten Klein
a5d2910f29
[Feature] clusterCreate: add back --env/-e flag to inject environment variables ( #409 )
4 years ago
Thorsten Klein
d0158c97c6
clusterCreate: add docker's --gpus flag ( #395 )
4 years ago
iwilltry42
a385241c77
clusterDelete: no error if no cluster was found ( fixes #379 )
4 years ago
Lionel Nicolas
ffe8c9697c
add ability to set container labels on nodes using --label/-l
...
This supports node filters as is already done for '--volume' and '--port'.
4 years ago
iwilltry42
11cc797922
overall/logging: new trace log level
...
- new root flag '--trace' with precedence over '--verbose'
- some new trace logs
- migrated some debug logs to trace logs to reduce debug verbosity
4 years ago
iwilltry42
d063482a32
clusterCreate: add --no-hostip flag to disable the automatic injection of the host.k3d.internal entry into /etc/hosts and CoreDNS
4 years ago