iwilltry42
2a2bee0e63
fix: not gathering env info on cluster start (+ fix ipam e2e test)
3 years ago
iwilltry42
f801e46e9e
fix --k3s-arg not applied from CLI due to wrong viper instance
...
- fixes #747
3 years ago
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
Thorsten Klein
7ba71ad66c
[Feature] CreateNode: add token and network flags and allow remote cluster ( #734 )
...
- `--cluster` flag parsed for `https://` prefix and node creation treated differently accordingly
- new `--network` string array flag to add the node to multiple networks (primary network when adding to a remote cluster)
- new `--token` flag to provide the cluster token
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
b4158a1dc1
[Enhancement] Network Magic ( #721 )
...
- before starting the cluster, gather environment info via tools node
- use hostIP/gatewayIP for DNS (iptables + resolv.conf updated in entrypoint script)
- revamp of custom entrypoint scripts
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
iwilltry42
ed7db5daa9
cleanup: rootcmd use the common way of creating a cobra cmd
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
iwilltry42
7bcb1730c6
nodeCreate: remove dead code and parallelize adding nodes to the cluster completely
3 years ago
iwilltry42
e063405b02
some really final log output after creating/deleting nodes
3 years ago
iwilltry42
de401c6db3
add debug functionality to get current loadbalancer config
3 years ago
Thorsten Klein
77aa76d7f2
[FEATURE] add ability to add ports to an existing loadbalancer ( #615 )
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
296f24c9b7
Revert 'Revert "add --node-label flag for node create command ( #584 , @developer-guy , @ejose , @dentrax )"'
...
This reverts commit 70872648b3
.
3 years ago
Thorsten Klein
c5f7884f78
[ENHANCEMENT] imageImport: start existing tools node before using it and add option to keep it around ( #672 )
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
iwilltry42
574148685d
nodeCreate: remove dead code and parallelize adding nodes to the cluster completely
3 years ago
iwilltry42
cc544a273e
some really final log output after creating/deleting nodes
3 years ago
iwilltry42
a928e41a2a
add debug functionality to get current loadbalancer config
3 years ago
Thorsten Klein
897e49a8ee
[FEATURE] add ability to add ports to an existing loadbalancer ( #615 )
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
774af31d24
Revert 'Revert "add --node-label flag for node create command ( #584 , @developer-guy , @ejose , @dentrax )"'
...
This reverts commit 70872648b3
.
3 years ago
Christian Mäder
3451675bc7
[Enhancement] Follow Docker's image nameing convention in `k3d image import` ( #653 , @cimnine )
3 years ago
iwilltry42
6c94d7db3d
overall/license: update to year range -2021
3 years ago
iwilltry42
70872648b3
Revert "add --node-label flag for node create command ( #584 , @developer-guy , @ejose , @dentrax )"
...
This reverts commit 5fe8a3c6c7
.
3 years ago
Batuhan Apaydın
5fe8a3c6c7
add --node-label flag for node create command ( #584 , @developer-guy , @ejose , @dentrax )
3 years ago
Thorsten Klein
0b7de65ebd
fix/workaround: add workaround for cgroupv2 until fixed in k3s ( #579 )
...
special thanks to @AkihiroSuda for the support on this!
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
Thorsten Klein
f2af514929
[Enhancement] docs: add automatic command tree generation via cobra ( #562 )
4 years ago
Thorsten Klein
239adeb864
[Feature] Runtime Info ( #553 )
4 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