291 Commits

Author SHA1 Message Date
iwilltry42
d6bf08feed properly handle --port 1234:4321@loadbalancer:proxy style port mappings which should default to all nodes as upstream 2021-07-07 15:30:04 +02:00
iwilltry42
1730ca5dfb fix nilpointer exception when cluster loadbalancer is not specified 2021-07-07 15:30:04 +02:00
iwilltry42
28ff88a1ed fix missing merge conflict resolutions 2021-07-07 15:30:04 +02:00
iwilltry42
6e8b27f99f fix usage of the new loadbalancer type and ordering when cluster is created 2021-07-07 15:30:04 +02:00
iwilltry42
31a1ac1d70 client/cluster:make injecting the coredns entry for host.k3d.internal more robust 2021-07-07 15:30:04 +02:00
iwilltry42
6c06208b8f document using new nodefilter syntax with : instead of [] for indexing 2021-07-07 15:30:04 +02:00
iwilltry42
5ce9f82428 remove debug logs for merged kubeconfig as they add too much noise 2021-07-07 15:30:04 +02:00
iwilltry42
d15ed26875 changes when creating clusters + new nodefilter syntax
- generate node names when transforming from simple to cluster config
  - ClusterCreate(clusterconfig) should have a ready made config and not
  generate variables
- ClusterCreate() only prep LB if not already present (to be removed)
- cluster struct: serverloadbalancer is now of type LoadBalancer (Node +
Config)
- use new nodefilter syntax with 'id:index:suffix' instead of
'id[index]' everywhere
  - use suffix when creating the LB
2021-07-07 15:30:04 +02:00
iwilltry42
9574002b38 add some more portmapping work 2021-07-07 15:30:04 +02:00
Thorsten Klein
1d72983a02 [FEATURE] add ability to add ports to an existing loadbalancer (#615) 2021-07-07 15:30:04 +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
5e2c03f586
updatelbconfig: check for log output to see if the update succeeded and give proper info 2021-07-06 13:20:24 +02:00
iwilltry42
d10ed031d8
nodeWaitForLogMessage: log found target line when on >= trace level logging 2021-07-06 13:20:24 +02:00
iwilltry42
2b059962c4
node/edit: use new loadbalancer config file for ports update 2021-07-06 13:20:23 +02:00
iwilltry42
49451df1f7
loadbalancer: use auto-reload for confd (file watcher) 2021-07-06 13:20:23 +02:00
iwilltry42
f2cb7c4e0a
adapt updating the loadbalancer config when adding a new node 2021-07-06 13:20:22 +02:00
iwilltry42
92b7689f9d
nodeAdd: do not copy ports from existing node (+ some cleanup) 2021-07-06 13:20:22 +02:00
iwilltry42
364e96bf1f
types/node: add nodehooks to node struct to have them around at any stage (TO-DO: use this everywhere -> breaking change) 2021-07-06 13:20:21 +02:00
iwilltry42
a1977a2d31
move defaults for images to new file 2021-07-06 13:20:20 +02:00
iwilltry42
220313524e
generate new config file for lb and add helper functions to get images from env if needed 2021-07-06 13:20:20 +02:00
iwilltry42
12527f8a8d
move loadbalancer creation to separate function 2021-07-06 13:20:20 +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
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