ejose19
bfead49c46
[Enhancement] Refactoring: normalize label flags (k3s node & runtime) ( #598 , @ejose19 )
3 years ago
iwilltry42
296f24c9b7
Revert 'Revert "add --node-label flag for node create command ( #584 , @developer-guy , @ejose , @dentrax )"'
...
This reverts commit 70872648b3
.
3 years ago
Thorsten Klein
32c368f531
[FIX] waiting for serverlb logs that exist already ( #637 )
3 years ago
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
3 years ago
iwilltry42
6c94d7db3d
overall/license: update to year range -2021
3 years ago
iwilltry42
70872648b3
Revert "add --node-label flag for node create command ( #584 , @developer-guy , @ejose , @dentrax )"
...
This reverts commit 5fe8a3c6c7
.
3 years ago
Thorsten Klein
770aaa4913
[Feature] cgroupv2fix: enable by default and move to nodestart ( #603 )
3 years ago
Thorsten Klein
bb1f5bde71
[FIX/ENHANCEMENT] node/create: inherit registry config from existing nodes ( #597 )
3 years ago
Batuhan Apaydın
5fe8a3c6c7
add --node-label flag for node create command ( #584 , @developer-guy , @ejose , @dentrax )
3 years ago
Konrad Malik
e495fe83a8
[FEATURE] Memory Limits ( #494 , @konradmalik )
4 years ago
iwilltry42
e1384c91a2
server: trim the port off the dockerHost as it renders the kubeconfig unusable ( fixes #487 )
4 years ago
iwilltry42
601bef45d7
general: properly use variable default object labels
4 years ago
iwilltry42
ac96c9c448
simplify log outputs and increase timeout for tests
4 years ago
iwilltry42
746cbcd131
node: add start time field and use it when waiting for log messages
4 years ago
iwilltry42
504fd3ad31
run multi-server e2e tests for multiple k3s versions
4 years ago
iwilltry42
1c61130fdf
clusterStart: sequential and ordered node starts & nodeCreate: do not copy status
4 years ago
Erik Kristensen
63d54842c0
[Feature] Support docker over ssh ( #324 , @ekristen & @inercia )
4 years ago
iwilltry42
e7c43df434
properly handle initNode and normalize waiting for log messages to determine successful node starts
4 years ago
iwilltry42
7b8506b1d9
fix: proper handling of registries and networks when deleting clusters/nodes
4 years ago
iwilltry42
7a3edd9d7e
NodeSpec: transform network string to list of strings to allow checking out node networks
4 years ago
iwilltry42
683a92792e
registryDelete/nodeDelete: make --all work and add 'node delete --registries'
4 years ago
iwilltry42
a37b01c5b9
NodeDelete: add NodeDeleteOpts
4 years ago
Thorsten Klein
c44c576d69
[Refactoring/Preparation] use real port structs as prep for registries ( #427 )
4 years ago
Thorsten Klein
ecc025b35e
[Feature] Registry for v4 & Restructure Cluster Creation ( #334 )
4 years ago
iwilltry42
d7b25ac6ab
v3 -> v4
4 years ago
Fabrice Vergnenegre
2d8d60b005
FIX : #412 set Restart flag to true before creation ( #413 , thanks @fabricev )
4 years ago
iwilltry42
11cc797922
overall/logging: new trace log level
...
- new root flag '--trace' with precedence over '--verbose'
- some new trace logs
- migrated some debug logs to trace logs to reduce debug verbosity
4 years ago
iwilltry42
ec3f10ec57
use server/agent instead of master/worker
4 years ago
iwilltry42
b02c783130
adjust toplevel pkg functions to new syntax
4 years ago
iwilltry42
76d90478f5
Go Module: use v3 for go module compatibility
4 years ago
iwilltry42
3cd1a05b91
Maintenance: move all labels to constants and fix log formatting issues
4 years ago
iwilltry42
2d0ec0a1d0
createNode: fix log output generating nil pointer...
...
... dereference in addNodeToCluster when cluster does not exist.
Fixes #277
4 years ago
iwilltry42
42ee62e552
createNode: add --wait and --timeout flags
...
- new struct: createNodeOpts for wait and timeout values
- new commands for creating/adding multiple nodes which then wait for
all nodes to be up, if specified
- tests/e2e: new test for adding a master node
4 years ago
iwilltry42
ee8b34d9f6
createNode: do not copy '--cluster-init' when creating a new master node, as this will break the node
4 years ago
iwilltry42
f0d3389a1f
removeNode: update loadbalancer if master
...
- use idempotent UpdateKubeconfig which takes a fresh list of master
nodes and uses it to update the loadbalancer
- removeNode: use aforementioned function to update the loadbalancer
config when removing a master node
4 years ago
iwilltry42
cf2c839b27
createNode: use default role label and cmd...
...
...if existing node does not match target role
Fixes #254
4 years ago
iwilltry42
99f5a6884a
getNodeLogs: accept time.Time parameter
...
- fixes startCluster's --wait/--timeout functionality
--> now doesn't check all the logs (e.g. from previous run)
----> no more false positives when checking for a specifc log message
only in the current run
4 years ago
iwilltry42
434cf8e91d
overall: pass context from top to bottom
4 years ago
iwilltry42
21fd427d8a
maintenance: cleanup debug logs
4 years ago
iwilltry42
639daef7fb
Reorder parameters
...
- runtimes.Runtime should at max. the second function parameter (right
after context.Context)
4 years ago
iwilltry42
0d2c22455d
Overall: use context.Context in top-level exported functions
...
- package cluster: use context.Context as first function param in every
exported function
- package cmd: pass cmd.Context() to calls to package cluster exported
functions
4 years ago
iwilltry42
fe21c27a32
createNode: add failover solution to get K3S_URL value
4 years ago
iwilltry42
ee8fe0bb35
createNode: add failover solution to get K3S_URL value
4 years ago
iwilltry42
4bfac51c7c
createCluster/createNode: use K3S_URL instead of --server
4 years ago
iwilltry42
c061104b53
createNode: copy as many details as possible from existing
...
- we now use the full containerJSON details when getting a node
- we now use as many details as possible to copy k3d settings from an
existing node when adding a new node to a running cluster
4 years ago
iwilltry42
da8adf5469
createNode: update nginx masterlb with new master node
...
- if --role=master, update nginx config and reload it
4 years ago
iwilltry42
b7b8f6a5a6
createNode: use any node as blueprint
...
- if no node with the target role exists in the cluster, just choose any
other (non-proxy) node instead
- to make this work, we also need to add the k3s url label to every node
4 years ago
iwilltry42
5121ef80a5
create/start/stop cluster: fix how Master-LoadBalancer is treated
...
- always include the k3d.role label and use LoadBalancerRole for
masterlb
- start masterlb last when starting a stopped cluster so it won't fail
4 years ago
iwilltry42
5c15dcbeca
add wait
4 years ago
iwilltry42
1b7f5c5f78
createCluster/timeout: use context to handle cancellation
...
With the updated cobra depencendy, we're now passing a context
from the cmd to the called functions.
When creating a cluster, one can pass a Duration to the --timeout
flag, which will create a new context with a timeout.
In the two blocking functions, where we're waiting for the master nodes
(initializing master nodes and "normal" master nodes), we're now
checking for the context cancellation as well, which may be caused
by the timeout.
4 years ago