88 Commits

Author SHA1 Message Date
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
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
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
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
Konrad Malik
e495fe83a8
[FEATURE] Memory Limits (#494, @konradmalik) 2021-03-29 17:52:15 +02: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
746cbcd131
node: add start time field and use it when waiting for log messages 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
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
7343c3dbe2
init merging registry config 2021-01-18 08:46:14 +01:00
Thorsten Klein
4dfb62ebff
[Feature] add LocalRegistryHostingV1 from KEP-1755 (#441) 2021-01-12 09:05:58 +01:00
iwilltry42
3fcc50b205
Merge branch 'main' into main-v4 2021-01-05 08:42:53 +01:00
iwilltry42
eafae0073a
registry: allow creating new and using existing registries 2021-01-04 09:40:36 +01:00
Alvaro
5dedac8cbb
Print the creation time for containers (#431)
* Added a new `created` field that exports the creation time
for all the containers in the cluster.

Signed-off-by: Alvaro Saurin <alvaro.saurin@gmail.com>
2020-12-30 18:47:37 +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
621640c901
rename ExposedPort 2020-12-10 14:41:31 +01:00
iwilltry42
0c32c36d99
rename Registry field from name to host 2020-12-10 14:36:51 +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
Thorsten Klein
778f80d8fd
[FEATURE] Config File (#351) 2020-12-04 16:02:37 +01:00
Alvaro
a93932e5b6
[Feature] Options for formatted output of cluster list (#416, @inercia))
This adds a `--ouput` flag to `cluster list` for dumping the
list of clusters as a JSON or YAML document.

Signed-off-by: Alvaro Saurin <alvaro.saurin@gmail.com>
2020-12-03 13:34:33 +01:00
Fabrice Vergnenegre
2d8d60b005
FIX: #412 set Restart flag to true before creation (#413, thanks @fabricev) 2020-11-26 08:54:06 +01:00
Thorsten Klein
d0158c97c6
clusterCreate: add docker's --gpus flag (#395) 2020-11-03 20:12:52 +01:00
iwilltry42
584bf71592
createCluster: wait for 'k3s is up and running' instead of 'Running kubelet' to ensure that the API-Server is up 2020-10-08 20:58:20 +02:00
iwilltry42
d063482a32
clusterCreate: add --no-hostip flag to disable the automatic injection of the host.k3d.internal entry into /etc/hosts and CoreDNS 2020-10-05 15:19:00 +02:00
iwilltry42
972c004930
add entry for host.k3d.internal to /etc/hosts in the node containers 2020-09-29 15:20:43 +02:00
iwilltry42
cc3fe46a23
clusterList: include node state 2020-08-12 11:24:15 +02:00
iwilltry42
1285fb90c4
overall: add node status field 2020-08-12 11:14:18 +02:00
iwilltry42
e5d093d3ce
clusterList: add bool for loadbalancer 2020-07-15 09:10:47 +02:00
iwilltry42
ec3f10ec57
use server/agent instead of master/worker 2020-07-14 20:29:33 +02:00
iwilltry42
b02c783130
adjust toplevel pkg functions to new syntax 2020-07-14 15:02:51 +02:00
iwilltry42
eac293a263
Overall: helper container images should always use same tag as CLI or fallback to latest 2020-06-18 09:01:04 +02:00
iwilltry42
76d90478f5
Go Module: use v3 for go module compatibility 2020-06-18 07:58:36 +02:00
iwilltry42
3cd1a05b91
Maintenance: move all labels to constants and fix log formatting issues 2020-06-12 19:00:01 +02:00
iwilltry42
5643b4e60c
proxy: increase timeout to 10 minutes
- prevent stream from breaking during e.g. 'kubectl get logs -f POD'

Fixes #276
2020-06-12 12:47:32 +02:00
iwilltry42
dbb24f4e1c
loadImages: accept mixed runtimeImage and tarball args
- loads images from tarballs and runtime
- only tries to do something if respective lists are not empty
- only creates tools node if it's not present yet
- uses new tools image to remove tarballs after process
2020-06-04 11:55:40 +02:00
iwilltry42
7dec0cc1be
Merge branch 'master' of github.com:rancher/k3d into feature/load-images-from-tar 2020-06-04 08:58:29 +02:00
iwilltry42
487393bbde
loadImage: cleanup command and initiate enhancements 2020-06-04 08:36:52 +02:00
Antoine
0862f11324
👌 replace k3d getk3stoken command by --token flag onto command k3d get cluster 2020-06-04 00:56:02 +02:00
Antoine
e3bf18660e
👌 PR review
Use `log.Fatalln(err)` instead of `log.Errorln(err)` + `os.Exit(1)`
Use Label prefix instead of LabelName suffix
Rename all secret occurence with token
2020-06-04 00:49:12 +02:00
Antoine
f6eaf25a2e
♻️ Some side effect refactoring
Print usage When no k3d verb was specify
Replace fake Cluster object create into getKubeConfig by realy complete object obtain thanks to cluster.GetCluster() function
Use constant variable for node Label name use into populateClusterFieldsFromLabels() function, in forecast to rename label `k3d.cluster.secret` to `k3d.cluster.token`
2020-06-04 00:49:08 +02:00
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
2020-06-03 14:55:50 +02:00