guangwu
d36cc4989c
chore: pkg imported more than once ( #1313 )
1 year ago
iwilltry42
34e5a4cf9f
change: bump deps, adjust code, go back to upstream wharfie
1 year ago
iwilltry42
93a67d712e
change: golangci-lint fix whitespaces
1 year ago
iwilltry42
f80cd8f374
fix: registries.yaml file not marshalled correctly by k8s yaml package
1 year ago
Max Sargent
dc9f05036a
change: allow full K3s registry configuration ( #1215 )
1 year ago
Thorsten Klein
8d54019838
add: K3D_FIX_MOUNTS fix to make / rshared (e.g. to make Cilium work) ( #1268 )
1 year ago
dan-ash
88c5f18792
Add support for ulimits ( #1264 )
1 year ago
Silvio Moioli
3457b2f9c4
Fix panic when k3sURLEnvIndex is -1 ( #1252 )
...
Signed-off-by: Silvio Moioli <silvio@moioli.net>
1 year ago
iwilltry42
518d6d81be
change: case-insensitive matching of node logs ( fixes #1248 )
2 years ago
Dejan Benedik
338672522a
fix: handle colima host ( #1228 )
2 years ago
Apoorv Joshi
b9e0930630
change: Use loadbalancer or any *active* server as K3S_URL ( #1190 )
2 years ago
qiaozp
5324cf69fe
Fix: unable to import image Darwin/arm64 ( #1191 )
...
* fix: unable to import image Darwin/arm64
* Modify go module name
* Rollback the module name
Signed-off-by: qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
---------
Signed-off-by: qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
2 years ago
Stephen B
516fe7c9fd
fix: avoid appending existing volumes ( #1154 )
2 years ago
iwilltry42
e238500fce
fix: try to figure out why gh actions are always failing
2 years ago
iwilltry42
80889fa6ae
change more info on node stopped returning log lines
2 years ago
iwilltry42
85841a1b16
v5.4.4: Changelog
2 years ago
Sunghoon Kang
24bb5f4493
fix: print consistent json/yaml output ( #1094 )
2 years ago
Krzysztof DryÅ›
bb4b69021f
fix: prefix stripping in image import ( #1096 )
2 years ago
York Wong
4bdf0963c5
[registry] support create pull-through registry cache
2 years ago
Thorsten Klein
15d7dc9c71
change: no default image for node creation in local cluster where image should be copied from existing nodes ( #1034 )
3 years ago
Thorsten Klein
ff2931b403
[FIX] store hostAliases in label to persist them across cluster stop/start ( #1029 )
3 years ago
iwilltry42
a3413dd64d
Do not defer goroutine to delete tools node, as this leads to errors ( fixes #1006 )
3 years ago
iwilltry42
2b31f648c4
fix: order of format options in volume deletion warning
3 years ago
Thorsten Klein
852df7786a
[Migration] search and replace rancher/k3d with k3d-io/k3d in most places ( #976 )
3 years ago
Thorsten Klein
dc5a1a5071
[Fix] detect '--disable=coredns' and conditionally disable injection ( #955 )
3 years ago
iwilltry42
fdd4dae1a0
fix: ensure labels on serverlb
3 years ago
Thorsten Klein
33bcd4d80a
fix: mutex on ensureToolsNode to avoid duplicate container name causing error ( #952 )
3 years ago
Ikko Ashimine
793fbce86c
Fix typo in node.go ( #949 )
3 years ago
wymli
08d5ae64f7
fix: serverlb should be created before using and restarted unless stopped ( #948 )
3 years ago
Thorsten Klein
08bf145e95
[Feature] Config v1alpha4 ( #944 )
...
- add: hostAliases
- add: hostPidMode
3 years ago
Thorsten Klein
3b0e6990c4
license: - 2022 ( #943 )
3 years ago
iwilltry42
7710f33686
license: - 2022
3 years ago
Thorsten Klein
aec4507db8
[Feature] add: config options to configure extra hosts ( #938 )
...
- add: `k3d cluster create --host-alias <ip>:<hostname>[,alias,...]`
- add: `.hostAliases` config option (to be present in v1alpha4/Simple
- change: regexp hostname validation
- add: `HostAliases` in `SimpleConfig`, `ClusterCreateOpts` and `ClusterStartOpts`
- add: `NewHostAliasesInjectEtcHostsAction`
- add: `RewriteFileActionOpts` with option `NoCopy` to work around "Resource Busy" issue
3 years ago
Thorsten Klein
5a00a39323
[Feature] Volume Shortcuts and k3d-managed volumes ( #916 )
...
- volume-mount destination shortcuts, e.g. `k3s-storage`
- non-existing named volumes starting with `k3d-` created/handled by k3d
- removed unused volume validation logic in `cmd/util`
3 years ago
iwilltry42
e2c20b899c
nodeCreate: do not copy memory limit from node of different role ( fixes #893 )
3 years ago
Simon Baier
43e9f9e168
fix(image-loading): mitigate tar load problem ( #881 )
3 years ago
Thorsten Klein
25ec400c49
[Fix] only replace default api host with docker host ( #879 )
...
- move docker-machine lookup into general GetHost function
- only use GetHost result if API host is default (0.0.0.0) to not override user-provided value
- when looking up IP for host value (e.g. localhost), only use IPv4 to prevent errors
3 years ago
Ambrose Chua
858c3142be
[Enhancement] Improved Podman compatibility ( #868 )
...
- fix: Remove call to ContainerExecStart when execing
- feat: Allow creating the registry on user-defined networks
3 years ago
iwilltry42
ca47fac476
waitForLogs: enrich error with scanner error if any
3 years ago
iwilltry42
a580edbe42
GetDockerHost to return host.docker.internal if DfD and local connection (and it's resolvable)
3 years ago
iwilltry42
ebea3387da
getHostIP: fix failing on DfD and init new host.k3d.internal injection
...
- do not close connection of exec process before having read everything
- as a backwards-compatible fix, we now read all logs into a new
bufio.Reader so we can savely close the connection and original reader
- start tools node with --add-host=host.k3d.internal:host-gateway
(docker feature) and use it for getHostIP on DfD (TODO: we can use this
on all platforms)
3 years ago
Thorsten Klein
b63fefe74d
[Enhancement] extend usability of nodefilters with suffices internally... ( #871 )
...
... and throw error if suffix is used in unsupported cases (e.g. volumes)
Note: as of now, only the port config supports nodefilter suffices (proxy, direct) and all the others don't.
3 years ago
iwilltry42
23ddbf67b1
clusterStart: only run necessary actions
...
- e.g. can only wait for specific log messages, if the nodes have been
restarted for real and not if they were already running
fixes #847
3 years ago
iwilltry42
d78ef48932
getHostIP: do not emit confusing warning that doesn't affect usability
3 years ago
iwilltry42
3cc4c5c5af
error on K3D_FIX_DNS=1 with /etc/resolv.conf mounted
3 years ago
Simon Baier
d0898bf9d8
[Enhancement]: improve image loading performance ( #826 )
...
- use `k3d-tools` (classic) image importing for remote docker hosts
- use direct streaming into the nodes (node exec with stdin) on local docker connections
3 years ago
iwilltry42
798c47aadd
clusterPrepNetwork: reserve an extra IP in an k3d-IPAM network to avoid conflicts with k3d-tools
3 years ago
iwilltry42
25abac918a
fix: do not do any network magic when using hostnetwork
...
- do not try to get host gateway IP via tools node or network inspect
- do not try to inject host.k3d.internal into /etc/hosts
- do not try to inject host.k3d.internal into CoreDNS configmap
- when getting node info from container, do not try to get IP info
3 years ago
iwilltry42
ef139c9ab1
nodeAddToCluster: add host.k3d.internal /etc/Hosts injection as postStartAction
3 years ago
iwilltry42
fd65d958d2
nodeHooks: add Description field and Name()/Info() functions
3 years ago