Eng Zer Jun
5e5a35c67c
refactor: move from io/ioutil to io and os package ( #827 )
2021-10-27 15:52:37 +02:00
Thorsten Klein
f8f17caf78
[Cleanup] Types, ready-log-messages & closing connections ( #818 )
...
- new special internal role `initServer` used only to determine the correct ready-log-message
- ready-log-messages now looked up by role and new `Intent` type (cluster-create/cluster-start/node-create/node-start), as especially for the init server there are different log messages indicating that we can proceed with the next step
- moving types around:
- K3s env vars now under .../types/k3s/env.go
- defaults now under .../types/defaults.go
- ...
- improved waiting for log messages
- not checking the whole log again and again in a loop
- follow log with a single reader (and retry in case we see a fatal error, meaning that the K3s container will restart -> backoff after 10 tries)
- BREAKING: new `*runtimeTypes.NodeLogsOpts` parameter in GetNodeLogs
2021-10-27 12:56:04 +02:00
Thorsten Klein
7113694ab5
[Enhancement] Edit CoreDNS ConfigMap on disk for more reliability ( #814 )
2021-10-22 15:07:01 +02:00
iwilltry42
7073a8fad7
migrate to module rancher/k3d/v5
2021-09-07 08:58:57 +02:00
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
2021-09-07 07:31:18 +02:00
iwilltry42
78738058c8
fix regression on checking edac folder introduced by wrapping a nil error
2021-08-31 10:42:45 +02:00
iwilltry42
9efe980789
overall: make error handling and error logs a bit more streamlined
2021-08-31 09:33:39 +02:00
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
2021-08-30 14:59:12 +02:00
Mateusz Urbanek
917c19eae5
feat(logging): using new package containing logrus.Logger instead of global scope logrus ( closes #583 ) ( #699 , @Shanduur)
2021-08-18 12:22:44 +02:00
iwilltry42
2516cad12e
allow for adding ports to a running cluster via the loadbalancer
2021-07-09 12:08:30 +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
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
92b7689f9d
nodeAdd: do not copy ports from existing node (+ some cleanup)
2021-07-06 13:20:22 +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
iwilltry42
774af31d24
Revert 'Revert "add --node-label flag for node create command ( #584 , @developer-guy, @ejose, @dentrax)"'
...
This reverts commit 70872648b3
.
2021-07-06 13:20:17 +02:00
Thorsten Klein
32c368f531
[FIX] waiting for serverlb logs that exist already ( #637 )
2021-06-16 15:08:29 +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
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 5fe8a3c6c7
.
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
Konrad Malik
e495fe83a8
[FEATURE] Memory Limits ( #494 , @konradmalik)
2021-03-29 17:52:15 +02: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
iwilltry42
601bef45d7
general: properly use variable default object labels
2021-02-09 14:57:29 +01:00
iwilltry42
ac96c9c448
simplify log outputs and increase timeout for tests
2021-02-05 16:08:32 +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
Erik Kristensen
63d54842c0
[Feature] Support docker over ssh ( #324 , @ekristen & @inercia)
2021-02-04 17:54:49 +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
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
Thorsten Klein
c44c576d69
[Refactoring/Preparation] use real port structs as prep for registries ( #427 )
2020-12-11 16:36:10 +01:00
Thorsten Klein
ecc025b35e
[Feature] Registry for v4 & Restructure Cluster Creation ( #334 )
2020-12-09 15:59:20 +01:00