266 Commits

Author SHA1 Message Date
iwilltry42
6c06208b8f document using new nodefilter syntax with : instead of [] for indexing 2021-07-07 15:30:04 +02:00
iwilltry42
9574002b38 add some more portmapping work 2021-07-07 15:30:04 +02:00
iwilltry42
7db9275a5b
clusterCreate: use tempfile with expanded env vars as viper input file 2021-07-06 13:20:26 +02:00
iwilltry42
574148685d
nodeCreate: remove dead code and parallelize adding nodes to the cluster completely 2021-07-06 13:20:25 +02:00
iwilltry42
cc544a273e
some really final log output after creating/deleting nodes 2021-07-06 13:20:25 +02:00
iwilltry42
a928e41a2a
add debug functionality to get current loadbalancer config 2021-07-06 13:20:19 +02:00
Thorsten Klein
897e49a8ee
[FEATURE] add ability to add ports to an existing loadbalancer (#615) 2021-07-06 13:20:18 +02:00
ejose19
1deb0aa64d
[Enhancement] Refactoring: normalize label flags (k3s node & runtime) (#598, @ejose19) 2021-07-06 13:20:18 +02:00
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
2021-07-06 13:20:17 +02:00
iwilltry42
774af31d24
Revert 'Revert "add --node-label flag for node create command (#584, @developer-guy, @ejose, @dentrax)"'
This reverts commit 70872648b345af93380653a357cc5c215614fb7c.
2021-07-06 13:20:17 +02:00
Christian Mäder
3451675bc7
[Enhancement] Follow Docker's image nameing convention in k3d image import (#653, @cimnine) 2021-07-05 13:40:14 +02:00
iwilltry42
6c94d7db3d
overall/license: update to year range -2021 2021-05-21 13:07:59 +02:00
iwilltry42
70872648b3
Revert "add --node-label flag for node create command (#584, @developer-guy, @ejose, @dentrax)"
This reverts commit 5fe8a3c6c741f1720796c11b09efec26107cb72d.
2021-05-14 13:53:47 +02:00
Batuhan Apaydın
5fe8a3c6c7
add --node-label flag for node create command (#584, @developer-guy, @ejose, @dentrax) 2021-05-10 16:58:01 +02:00
Thorsten Klein
0b7de65ebd
fix/workaround: add workaround for cgroupv2 until fixed in k3s (#579)
special thanks to @AkihiroSuda for the support on this!
2021-04-29 09:17:49 +02:00
Jason
bfcac7ec4a
fix create command's flags typo (#568, @Jason-ZW)
Signed-off-by: Jason-ZW <zhenyang@rancher.com>
2021-04-26 10:32:17 +02:00
Thorsten Klein
24cf263c73
[FEATURE] IPAM via subnet flag (#560) 2021-04-20 07:39:51 +02:00
Thorsten Klein
f2af514929
[Enhancement] docs: add automatic command tree generation via cobra (#562) 2021-04-14 14:14:07 +02:00
Thorsten Klein
239adeb864
[Feature] Runtime Info (#553) 2021-04-07 19:20:58 +02:00
iwilltry42
45d451a661
[hotfix] use viper fork with fixed stringArray handling from https://github.com/spf13/viper/pull/398 2021-03-30 15:26:37 +02:00
Konrad Malik
e495fe83a8
[FEATURE] Memory Limits (#494, @konradmalik) 2021-03-29 17:52:15 +02:00
iwilltry42
dbe32704a5
root: add goos/goarch debug log 2021-03-11 10:57:21 +01:00
Thorsten Klein
6ba281b4e4
[Enhancement] docs/help: clarify registry names (naming & k3d-prefix) (#532) 2021-03-11 08:56:17 +01:00
Eugene Brodsky
845aab932f
[Enhancement] Add status column to registry list (#496, @ebr) 2021-03-05 14:45:26 +01:00
Alex Sears
f141bc3be8
Fix typo in cluster stop command doc (#513, @searsaw) 2021-03-02 18:52:37 +01:00
iwilltry42
8b0174bed2
runtimes/docker/getgatewayip: properly catch non-existent ipam config 2021-03-02 18:38:55 +01:00
markrexwinkel
e307b69dca
[Fix] Allow absolute paths for volumes on Windows (#510, @markrexwinkel) 2021-03-02 18:30:03 +01:00
iwilltry42
e1384c91a2
server: trim the port off the dockerHost as it renders the kubeconfig unusable (fixes #487) 2021-02-09 16:21:55 +01:00
Dominik Tomasi
dbfaeb4af3
Fix for KubeAPI Port assignment when using config files (#490, @dtomasi) 2021-02-09 15:47:17 +01:00
Konrad Malik
df9859eae6
[ENHANCEMENT] Add config processing and fix hostmode (#477, @konradmalik) 2021-02-09 15:17:58 +01:00
iwilltry42
e2a05c1f39
fix/clusterCreate: use StringSlice for k3s-server|agent-arg flag
- required due to StringArray incompatibility in Viper
Fixes #482
2021-02-06 21:00:10 +01:00
iwilltry42
98a48a0fc6
enable buildkit and timestamped logging 2021-02-04 19:33:19 +01:00
iwilltry42
1c61130fdf
clusterStart: sequential and ordered node starts & nodeCreate: do not copy status 2021-02-04 19:07:36 +01:00
Thorsten Klein
092f26a4e2
[FEATURE/FIX] Viper Configuration and JSON Schema (#472) 2021-02-03 11:31:21 +01:00
iwilltry42
bad77f0027
clusterStart: wait for servers to be up and running by default 2021-01-28 08:24:43 +01:00
iwilltry42
7b8506b1d9
fix: proper handling of registries and networks when deleting clusters/nodes 2021-01-19 18:53:32 +01:00
iwilltry42
683a92792e
registryDelete/nodeDelete: make --all work and add 'node delete --registries' 2021-01-19 17:41:51 +01:00
iwilltry42
a37b01c5b9
NodeDelete: add NodeDeleteOpts 2021-01-19 14:50:34 +01:00
iwilltry42
75e758e7ea
Merge branch 'main' of github.com:rancher/k3d into feature/managed-registry-with-registries-file 2021-01-18 16:52:59 +01:00
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 2021-01-18 15:52:16 +01:00
iwilltry42
608f24a6e3
completion/zsh: explicitly source zsh completion
Thanks for the hint @konradmalik, fixes #390
2021-01-18 08:52:47 +01:00
iwilltry42
7343c3dbe2
init merging registry config 2021-01-18 08:46:14 +01:00
Alvaro
c6df1448ef
[Enhancement] Improved listings for nodes & registries (#439, @inercia) 2021-01-14 12:51:44 +01:00
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
2021-01-07 11:32:30 +01:00
iwilltry42
85e50d819c
rename merge-default-kubeconfig to kubeconfig-merge-default to follow new naming syntax 2021-01-05 08:06:50 +01:00
iwilltry42
eafae0073a
registry: allow creating new and using existing registries 2021-01-04 09:40:36 +01:00
Thorsten Klein
c44c576d69
[Refactoring/Preparation] use real port structs as prep for registries (#427) 2020-12-11 16:36:10 +01:00
iwilltry42
d042c79df2
unify the registry type 2020-12-11 08:56:26 +01:00
iwilltry42
621640c901
rename ExposedPort 2020-12-10 14:41:31 +01:00
iwilltry42
0c32c36d99
rename Registry field from name to host 2020-12-10 14:36:51 +01:00