iwilltry42
8c15a58a8f
docker/getRuntimePath: consider DOCKER_SOCK env var ( fixes #762 )
3 years ago
蜻蜓特派员
1bcf802012
[Fix] Fix docker client creation by tls verify from env ( #829 )
3 years ago
Eng Zer Jun
5e5a35c67c
refactor: move from io/ioutil to io and os package ( #827 )
3 years ago
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
3 years ago
iwilltry42
81a41bdab1
debug: add env var flag K3D_DEBUG_DISABLE_DOCKER_INIT to test k3s as pid 1
3 years ago
Thorsten Klein
67d8c8c84f
[Enhancement/Fix] Properly use env/runtime info and inject dns accordingly ( #758 )
...
- make use of environment and runtime info
- DfD: use host.docker.internal
- All other cases: use Docker network Gateway
- k3d-tools: based on alpine to have `getent` present
3 years ago
Thorsten Klein
7071129df8
[Enhancement] More powerful registry-create opt ( #727 )
...
- `--registry-create NAME[:HOST][:HOSTPORT]` changed from bool flag
- respective config added to config file
3 years ago
iwilltry42
7073a8fad7
migrate to module rancher/k3d/v5
3 years ago
iwilltry42
5aa1edfb73
update to go1.17 and update direct dependencies
3 years ago
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
3 years ago
iwilltry42
78738058c8
fix regression on checking edac folder introduced by wrapping a nil error
3 years ago
iwilltry42
17dc4b7b4d
fix e2e makefile target
3 years ago
iwilltry42
9efe980789
overall: make error handling and error logs a bit more streamlined
3 years ago
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
3 years ago
iwilltry42
1ae8302980
fix: do not try to parse container IP if container is restarting
3 years ago
Thorsten Klein
212979d0bb
[Enhancement] DNS Injection ( #718 )
...
- remove`--no-hostip` flag and the related `disableHostIPInjection` config option
- inject host IP on every cluster startup (except when hostnetwork is chosen)(/etc/hosts + CoreDNS)
- inject host entries for every cluster network member container into the CoreDNS configmap
3 years ago
iwilltry42
9abcbedb37
fix: when checking for folder existence in container, only pull the
...
image if not present
works around issue reported in
https://github.com/rancher/k3d/discussions/703 if image is present
locally
3 years ago
iwilltry42
8647a0ca40
fix: when checking for folder existence in container, only pull the
...
image if not present
works around issue reported in
https://github.com/rancher/k3d/discussions/703 if image is present
locally
3 years ago
Mateusz Urbanek
917c19eae5
feat(logging): using new package containing logrus.Logger instead of global scope logrus ( closes #583 ) ( #699 , @Shanduur )
3 years ago
iwilltry42
5364bd1300
fix: log level overwritten by dockerCli.Initialize()
3 years ago
Thorsten Klein
607382056b
[Fix] Simplify and Fix docker client creation ( #674 )
...
These options worked:
- unix://
- ssh://
- tcp:// (with and without tls)
3 years ago
iwilltry42
8fef6aee09
fix usage of the new loadbalancer type and ordering when cluster is created
3 years ago
Thorsten Klein
77aa76d7f2
[FEATURE] add ability to add ports to an existing loadbalancer ( #615 )
3 years ago
ejose19
bfead49c46
[Enhancement] Refactoring: normalize label flags (k3s node & runtime) ( #598 , @ejose19 )
3 years ago
iwilltry42
6e8b27f99f
fix usage of the new loadbalancer type and ordering when cluster is created
3 years ago
Thorsten Klein
897e49a8ee
[FEATURE] add ability to add ports to an existing loadbalancer ( #615 )
3 years ago
ejose19
1deb0aa64d
[Enhancement] Refactoring: normalize label flags (k3s node & runtime) ( #598 , @ejose19 )
3 years ago
MichalK
cbe187d008
[Fix] Use default gateway, when bridge network doesn't have it ( #666 , @kuritka )
...
Signed-off-by: kuritka <kuritka@gmail.com>
3 years ago
iwilltry42
34aac579d2
runtimes/docker: use getDockerClient function everywhere so all functions can work via e.g. ssh
3 years ago
iwilltry42
6c94d7db3d
overall/license: update to year range -2021
3 years ago
Batuhan Apaydın
f59216c2e0
docker context support
...
Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>
3 years ago
Thorsten Klein
bb1f5bde71
[FIX/ENHANCEMENT] node/create: inherit registry config from existing nodes ( #597 )
3 years ago
iwilltry42
b4c910b729
runtimes/docker/network: only read ipam config if exists
...
- fixes #576
- IPAM config is empty for e.g. the "host" network
3 years ago
Thorsten Klein
0b7de65ebd
fix/workaround: add workaround for cgroupv2 until fixed in k3s ( #579 )
...
special thanks to @AkihiroSuda for the support on this!
3 years ago
Thorsten Klein
24cf263c73
[FEATURE] IPAM via subnet flag ( #560 )
3 years ago
Thorsten Klein
239adeb864
[Feature] Runtime Info ( #553 )
4 years ago
Konrad Malik
e495fe83a8
[FEATURE] Memory Limits ( #494 , @konradmalik )
4 years ago
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
4 years ago
iwilltry42
8b0174bed2
runtimes/docker/getgatewayip: properly catch non-existent ipam config
4 years ago
MichalK
76fc9ebed7
[Fix] Reuse registry in multicluster (fixes #485,@kuritka) ( #486 , @kuritka )
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
b5c055f436
less loggigng
4 years ago
iwilltry42
746cbcd131
node: add start time field and use it when waiting for log messages
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
b7576591d2
fix: no duplicate network entry
4 years ago
iwilltry42
7a3edd9d7e
NodeSpec: transform network string to list of strings to allow checking out node networks
4 years ago