Batuhan Apaydın
f4505a3d81
docker context support
...
Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>
2021-07-13 12:35:38 +02:00
iwilltry42
8fef6aee09
fix usage of the new loadbalancer type and ordering when cluster is created
2021-07-09 10:48:28 +02:00
Thorsten Klein
77aa76d7f2
[FEATURE] add ability to add ports to an existing loadbalancer ( #615 )
2021-07-09 10:46:16 +02:00
ejose19
bfead49c46
[Enhancement] Refactoring: normalize label flags (k3s node & runtime) ( #598 , @ejose19)
2021-07-09 10:46:16 +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
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
Thorsten Klein
bb1f5bde71
[FIX/ENHANCEMENT] node/create: inherit registry config from existing nodes ( #597 )
2021-05-11 08:17:58 +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
Thorsten Klein
24cf263c73
[FEATURE] IPAM via subnet flag ( #560 )
2021-04-20 07:39:51 +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
dbf3ff8172
getNodeContainer: regex to allow k3d-prefixed or non-prefixed name
...
- fixes #495
- additionally brings in a fix for a nil-pointer exception in case
someone inputs a regex that would result in multiple containers being
returned
2021-03-05 14:57:32 +01:00
iwilltry42
8b0174bed2
runtimes/docker/getgatewayip: properly catch non-existent ipam config
2021-03-02 18:38:55 +01:00
MichalK
76fc9ebed7
[Fix] Reuse registry in multicluster (fixes #485,@kuritka) ( #486 , @kuritka)
2021-02-09 17:45:15 +01: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
b5c055f436
less loggigng
2021-02-04 19:07:38 +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
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
b7576591d2
fix: no duplicate network entry
2021-01-19 18:11:17 +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
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
3fcc50b205
Merge branch 'main' into main-v4
2021-01-05 08:42:53 +01:00
iwilltry42
b36c49aac2
import image: add additional exception handling to avoid nil pointer exceptions
2021-01-05 08:35:20 +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
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
iwilltry42
d7b25ac6ab
v3 -> v4
2020-12-04 13:45:57 +01:00
iwilltry42
3c5690a507
cleanup docker-machine related logs
2020-11-13 07:38:15 +01:00
iwilltry42
aa3a54e3c9
do not use host.docker.internal IP for API on non-docker-machine setups of Docker for Desktop
2020-11-12 20:49:40 +01:00
Thorsten Klein
586b1c7eae
clusterCreate: use docker VM IP for API connection ( #399 )
...
Try
- `docker-machine ip`
- host lookup for `host.docker.internal`
Fixes #388
2020-11-04 15:44:46 +01:00
Thorsten Klein
d0158c97c6
clusterCreate: add docker's --gpus flag ( #395 )
2020-11-03 20:12:52 +01:00
iwilltry42
b5eeda74d6
execInNode: check if we have a response before trying to access the reader in case of error to avoid nil pointer exceptions
2020-10-26 13:39:29 +01:00
iwilltry42
425b9b709e
execInNode: do not read logreader too early, because that clears it for other read processes
2020-10-19 14:36:49 +02:00
iwilltry42
dcef0b1946
runtime/docker/node: logreader must not be nil
...
Check for nil when trying to return exec process log reader.
Fixes #377
2020-10-15 07:28:30 +02:00
iwilltry42
ca23c6d898
clusterCreate/network: only use the exact chosen network
...
Before, we just looked up the name of the docker network, causing docker
to do some sort of relaxed matching (prefix?) which could cause k3d to
choose the first matching network instead of the exact match.
Now we're enforcing exact Regex matching to prevent this.
Fixes #374
2020-10-08 09:31:59 +02:00
iwilltry42
c27410ea32
createCluster: Fix getHostIP edge cases
...
- sometimes, the exec process returns a non-zero exit code but still has
logs which are helpful for us
- sometimes everything fails and we should gracefully handle this
2020-10-07 11:02:46 +02:00
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
2020-10-07 08:58:03 +02:00
iwilltry42
dc0ba9873b
patch CoreDNS configmap with host.k3d.internal
2020-10-01 21:09:12 +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
b5a9d6397f
fix unittests
2020-09-20 17:53:41 +02:00
Thorsten Klein
b029655c8b
Merge pull request #328 from rancher/feature/node-status
...
[Feature] Node Status
2020-08-13 19:04:40 +03:00
iwilltry42
1285fb90c4
overall: add node status field
2020-08-12 11:14:18 +02:00
kshelton
eaa7784625
Handle leading '/' in names for docker runtime
2020-08-06 18:03:49 +00:00