iwilltry42
93a67d712e
change: golangci-lint fix whitespaces
1 year ago
iwilltry42
a1c390e7c2
change: deprecate 'k3d version ls --format' in favor of '--output'
1 year ago
Danny Gershman
5e582b87d6
Adds json response of version info ( #1262 )
1 year ago
iwilltry42
438f7efc83
change: improved help text for k3d version ls
1 year ago
Thorsten Klein
2d5db00546
fix: k3d version ls (now via crane) ( #1286 )
1 year ago
dan-ash
88c5f18792
Add support for ulimits ( #1264 )
1 year ago
iwilltry42
05d839b2b8
change: update deps
2 years ago
Sunil Shivanand
16d400aa05
Support reading in registries-config via env ( #1199 )
...
Fixes https://github.com/k3d-io/k3d/issues/1198
2 years ago
Teemu Kupari
72726ef608
docs: Add missing backtick to k3s-arg example command ( #1192 )
2 years ago
Kamesh Sampath
1dc49a2856
add: ability to load configuration from stdin ( #1126 )
2 years ago
Sunghoon Kang
24bb5f4493
fix: print consistent json/yaml output ( #1094 )
2 years ago
York Wong
4bdf0963c5
[registry] support create pull-through registry cache
2 years ago
Simon Emms
c1d8e307f1
Fix deleting of cluster by config file ( #1054 )
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
b1374e52df
add: node create --k3s-arg flag ( #1032 )
3 years ago
Thorsten Klein
ff2931b403
[FIX] store hostAliases in label to persist them across cluster stop/start ( #1029 )
3 years ago
iwilltry42
7b1b416c22
hotfix: switch default for image import to original tools-node mode, because direct mode failed fairly often
3 years ago
Thorsten Klein
91448bdda5
fix zsh completion output ( #1014 )
3 years ago
iwilltry42
b208c1fc8e
fix: volume shortcuts not working because clusterconfig was not being processed
3 years ago
Thorsten Klein
852df7786a
[Migration] search and replace rancher/k3d with k3d-io/k3d in most places ( #976 )
3 years ago
Paul Jolly
75bd0728bf
fix: invert logic for LOG_LEVEL parsing ( #958 )
3 years ago
iwilltry42
a8f937fa01
fix: clusterDelete: properly parse config file to avoid failure on v1alpha4
3 years ago
Thorsten Klein
9d00a6468f
add env var LOG_COLORS=[1|true|0|false] to toggle colored log output (enabled by default) ( #951 )
3 years ago
Thorsten Klein
08bf145e95
[Feature] Config v1alpha4 ( #944 )
...
- add: hostAliases
- add: hostPidMode
3 years ago
iwilltry42
e7ed1ebcd2
license: time range everywhere
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
Hiroto Funakoshi
c16bf6f3d2
[FEATURE] host pid mode support for k3s-server and k3s-agent ( #929 )
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
kuritka
4ffc71d4be
Removing non-existing cluster via configuration
...
Signed-off-by: kuritka <kuritka@gmail.com>
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
Thorsten Klein
9b326c2c54
[Feature] Add command to list image tags ( #870 )
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
Thorsten Klein
925dec492b
[FIX] clusterCreate: process simpleConfig before validation step to avoid early exit in hostnetwork mode ( #860 )
3 years ago
Thorsten Klein
b073e7675f
feat: fetch K3s image tag from channelserver on latest/stable/+min.major ( #841 )
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
Maxim Eryomenko
407ced6405
chore(cmd): add subcommands in one call ( #819 )
3 years ago
Harley Laue
376f0378af
[Docs] Clarify `node create` help text about cluster reference ( #808 )
3 years ago
iwilltry42
a4d573fc2c
fix: check temp file with env vars expanded instead of original config file to avoid validation failures
3 years ago
Thorsten Klein
12180ffdd5
[Fix] more resilient post-create cluster preparation (DNS) ( #780 )
3 years ago
Thorsten Klein
53bdbec636
[Fix] `k3d config migrate` missing nodefilter migration ( #767 )
...
configMigrate: add missing migrations for nodefilters and fix perm of outputfile
3 years ago
iwilltry42
2a2bee0e63
fix: not gathering env info on cluster start (+ fix ipam e2e test)
3 years ago
iwilltry42
f801e46e9e
fix --k3s-arg not applied from CLI due to wrong viper instance
...
- fixes #747
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
630788f1e7
clusterCreate: add --lb-config-override flag
...
- allow overriding k3d-proxy settings (workerProcesses,
defaultProxyTimeout)
- add new field to loadbalancer config and SimpleConfig structs
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