Commit Graph

47 Commits

Author SHA1 Message Date
iwilltry42
2516cad12e
allow for adding ports to a running cluster via the loadbalancer 2021-07-09 12:08:30 +02:00
iwilltry42
c6ee295deb
Merge branch 'main-v5' into feature/cluster-edit-ports 2021-07-09 10:55:40 +02:00
iwilltry42
fb1c45b9ae
client/cluster:make injecting the coredns entry for host.k3d.internal more robust 2021-07-09 10:48:27 +02:00
iwilltry42
91db3f647c
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-09 10:48:26 +02:00
iwilltry42
44a79c4670
types/node: add nodehooks to node struct to have them around at any stage (TO-DO: use this everywhere -> breaking change) 2021-07-09 10:46:19 +02:00
iwilltry42
a3dd47029d
generate new config file for lb and add helper functions to get images from env if needed 2021-07-09 10:46:18 +02:00
iwilltry42
21244172c9
move loadbalancer creation to separate function 2021-07-09 10:46:17 +02:00
ejose19
bfead49c46
[Enhancement] Refactoring: normalize label flags (k3s node & runtime) (#598, @ejose19) 2021-07-09 10:46:16 +02:00
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
2021-07-09 10:46:12 +02:00
iwilltry42
831e58fdce
init clusteredit 2021-07-07 17:12:00 +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
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
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
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
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
6c94d7db3d
overall/license: update to year range -2021 2021-05-21 13:07:59 +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
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
Thorsten Klein
24cf263c73
[FEATURE] IPAM via subnet flag (#560) 2021-04-20 07:39:51 +02:00
Dinar Valeev
78c22f7a0c
[FIX] Fix udp service access through k3d-proxy (fixes #489) (#488, @k0da) 2021-02-09 16:48:44 +01:00
Konrad Malik
df9859eae6
[ENHANCEMENT] Add config processing and fix hostmode (#477, @konradmalik) 2021-02-09 15:17:58 +01:00
iwilltry42
b5c055f436
less loggigng 2021-02-04 19:07:38 +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
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
7a3edd9d7e
NodeSpec: transform network string to list of strings to allow checking out node networks 2021-01-19 18:03:57 +01:00
iwilltry42
a37b01c5b9
NodeDelete: add NodeDeleteOpts 2021-01-19 14:50:34 +01:00
Thorsten Klein
c809767448
[Fix] registry: adjustments on how the registry is perceived (#454)
- LocalRegistryHostingConfigMap
  - use localhost or docker-machine as external host IP
  - fromContainerRuntime: user container-name + internal port
- registries.yaml: set up mirrors for both external and internal address
2021-01-19 08:49:42 +01:00
iwilltry42
8f7d820081
fix order of interpreting different registry inputs 2021-01-18 20:20:13 +01:00
iwilltry42
f0486a388b
only merge configs, if there is one referenced 2021-01-18 15:45:21 +01:00
iwilltry42
267e520fce
registry: basic merge of existing registry with generated registry config 2021-01-18 15:35:57 +01:00
iwilltry42
d17a2aefa9
registry: only warn, if configmap couldn't be created in any node, as one is enough. 2021-01-14 09:49:30 +01:00
Thorsten Klein
4dfb62ebff
[Feature] add LocalRegistryHostingV1 from KEP-1755 (#441) 2021-01-12 09:05:58 +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
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
a58785f442
rename externalRegistry field from name to host 2020-12-10 14:34:52 +01:00
Thorsten Klein
ecc025b35e
[Feature] Registry for v4 & Restructure Cluster Creation (#334) 2020-12-09 15:59:20 +01:00