267 Commits

Author SHA1 Message Date
iwilltry42
9abcbedb37
fix: when checking for folder existence in container, only pull the
image if not present

works around issue reported in
https://github.com/rancher/k3d/discussions/703 if image is present
locally
2021-08-18 14:16:11 +02:00
Mateusz Szostok
0c02607d1e
[FIX]: import all requested images (#701, @mszostok) 2021-08-18 13:35:07 +02:00
Thorsten Klein
c5f7884f78
[ENHANCEMENT] imageImport: start existing tools node before using it and add option to keep it around (#672) 2021-07-09 08:22:05 +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
MichalK
cbe187d008
[Fix] Use default gateway, when bridge network doesn't have it (#666, @kuritka)
Signed-off-by: kuritka <kuritka@gmail.com>
2021-07-02 10:05:26 +02:00
Thorsten Klein
32c368f531
[FIX] waiting for serverlb logs that exist already (#637) 2021-06-16 15:08:29 +02:00
蜻蜓特派员
511c6c3f53
new file handle should close after create (#628, @dragonflylee) 2021-06-11 12:31:52 +02:00
蜻蜓特派员
f648e381a3
fix kubeconfig write on windows (#626, @dragonflylee) 2021-06-10 16:59:07 +02:00
iwilltry42
d98925f5b1
fix: do not copy meminfo/edac volume mounts from existing node
... as this will end up in duplicate mounts due to the also-copied
memory limit

- fixes #618
2021-06-04 08:35:25 +02:00
iwilltry42
34aac579d2
runtimes/docker: use getDockerClient function everywhere so all functions can work via e.g. ssh 2021-06-04 07:43:06 +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
Thorsten Klein
770aaa4913
[Feature] cgroupv2fix: enable by default and move to nodestart (#603) 2021-05-12 10:19:15 +02:00
Thorsten Klein
bb1f5bde71
[FIX/ENHANCEMENT] node/create: inherit registry config from existing nodes (#597) 2021-05-11 08:17:58 +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
iwilltry42
b4c910b729
runtimes/docker/network: only read ipam config if exists
- fixes #576
  - IPAM config is empty for e.g. the "host" network
2021-04-30 14:29:00 +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
iwilltry42
a576a0e295
fix/runtime/util: docker volume not mountable due to validation failure 2021-04-27 19:43:30 +02:00
Thorsten Klein
24cf263c73
[FEATURE] IPAM via subnet flag (#560) 2021-04-20 07:39:51 +02:00
iwilltry42
70a00bed1d
json-schema: add some examples and defaults 2021-04-15 14:30:39 +02:00
Thorsten Klein
239adeb864
[Feature] Runtime Info (#553) 2021-04-07 19:20:58 +02:00
Konrad Malik
e495fe83a8
[FEATURE] Memory Limits (#494, @konradmalik) 2021-03-29 17:52:15 +02:00
iwilltry42
16fa1076ff
[Fix] Allow absolute paths for volumes on Windows (#510, @markrexwinkel)
re-applied in the pkg/util
2021-03-29 17:25:01 +02:00
iwilltry42
6f5f4bb924
Remove containerd runtime implementation
- unused
- incomplete
- caused issues building on Windows due to dependencies
2021-03-10 17:14:38 +01:00
Fabrice Vergnenegre
83da516bc6
[FIX] Properly handle host/hostIP cases for kubeconfig (#500, @fabricev) 2021-03-09 20:07:51 +01:00
Thorsten Klein
9cc7915c55
[Enhancement] jsonschema: use Go1.16's go:embed to embed the json schema file (dedup) (#529) 2021-03-08 17:46:45 +01:00
iwilltry42
dbf3ff8172
getNodeContainer: regex to allow k3d-prefixed or non-prefixed name
- fixes #495
- additionally brings in a fix for a nil-pointer exception in case
someone inputs a regex that would result in multiple containers being
returned
2021-03-05 14:57:32 +01:00
iwilltry42
8b0174bed2
runtimes/docker/getgatewayip: properly catch non-existent ipam config 2021-03-02 18:38:55 +01:00
MichalK
76fc9ebed7
[Fix] Reuse registry in multicluster (fixes #485,@kuritka) (#486, @kuritka) 2021-02-09 17:45:15 +01:00
Dinar Valeev
78c22f7a0c
[FIX] Fix udp service access through k3d-proxy (fixes #489) (#488, @k0da) 2021-02-09 16:48:44 +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
Konrad Malik
df9859eae6
[ENHANCEMENT] Add config processing and fix hostmode (#477, @konradmalik) 2021-02-09 15:17:58 +01:00
iwilltry42
601bef45d7
general: properly use variable default object labels 2021-02-09 14:57:29 +01:00
iwilltry42
58d37bea94
general: add k3d version to default object labels 2021-02-08 15:50:17 +01:00
iwilltry42
ac96c9c448
simplify log outputs and increase timeout for tests 2021-02-05 16:08:32 +01:00
iwilltry42
b5c055f436
less loggigng 2021-02-04 19:07:38 +01:00
iwilltry42
746cbcd131
node: add start time field and use it when waiting for log messages 2021-02-04 19:07:38 +01:00
iwilltry42
504fd3ad31
run multi-server e2e tests for multiple k3s versions 2021-02-04 19:07:37 +01:00
iwilltry42
1c61130fdf
clusterStart: sequential and ordered node starts & nodeCreate: do not copy status 2021-02-04 19:07:36 +01:00
iwilltry42
b2162b1618
clusterCreate: add warning for 2 server nodes (quorum for etcd) 2021-02-04 19:07:36 +01:00
Erik Kristensen
63d54842c0
[Feature] Support docker over ssh (#324, @ekristen & @inercia) 2021-02-04 17:54:49 +01:00
iwilltry42
5adab78ef6
release v4.1.0-alpha.2 2021-02-04 12:59:48 +01:00
iwilltry42
eaee32e227
fix: print error which causes serverlb to fail starting
Fixes #466
2021-02-03 13:26:05 +01:00
iwilltry42
e119326184
fix: --no-lb failed
- initialize port map of initnode, if nil

Fixes #463
2021-02-03 12:36:04 +01:00
Konrad Malik
73e1548264
[FIX] do not ignore --no-hostip and don't try to inject if network = host (#471) 2021-02-03 11:38:31 +01:00
Thorsten Klein
092f26a4e2
[FEATURE/FIX] Viper Configuration and JSON Schema (#472) 2021-02-03 11:31:21 +01:00
iwilltry42
e7c43df434
properly handle initNode and normalize waiting for log messages to determine successful node starts 2021-01-28 08:32:48 +01:00
iwilltry42
7b8506b1d9
fix: proper handling of registries and networks when deleting clusters/nodes 2021-01-19 18:53:32 +01:00
iwilltry42
b7576591d2
fix: no duplicate network entry 2021-01-19 18:11:17 +01:00
iwilltry42
7a3edd9d7e
NodeSpec: transform network string to list of strings to allow checking out node networks 2021-01-19 18:03:57 +01:00