Ahmed AbouZaid
9eaa6c4d8e
feat: support config embedded and external files ( #1417 )
6 months ago
iwilltry42
f73fe36eb0
change/docs: copyright notice year
11 months ago
iwilltry42
cc3fe91265
change (breaking/module): switch from netaddr.af to netipx + netip
1 year ago
guangwu
d36cc4989c
chore: pkg imported more than once ( #1313 )
1 year ago
iwilltry42
93a67d712e
change: golangci-lint fix whitespaces
1 year ago
dan-ash
88c5f18792
Add support for ulimits ( #1264 )
1 year 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
Simon Emms
c1d8e307f1
Fix deleting of cluster by config file ( #1054 )
2 years ago
Thorsten Klein
ff2931b403
[FIX] store hostAliases in label to persist them across cluster stop/start ( #1029 )
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
iwilltry42
a8f937fa01
fix: clusterDelete: properly parse config file to avoid failure on v1alpha4
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
Hiroto Funakoshi
c16bf6f3d2
[FEATURE] host pid mode support for k3s-server and k3s-agent ( #929 )
3 years ago
kuritka
4ffc71d4be
Removing non-existing cluster via configuration
...
Signed-off-by: kuritka <kuritka@gmail.com>
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
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
Thorsten Klein
12180ffdd5
[Fix] more resilient post-create cluster preparation (DNS) ( #780 )
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
iwilltry42
91426eabd1
cmd: make config initialization more general
...
- move viper initialization from k3d config file to separate util
sub-package in cmd/
- use that new subpackage init function to leverage the config file in
`k3d cluster delete`
- cover that with an e2e test case
3 years ago
iwilltry42
9efe980789
overall: make error handling and error logs a bit more streamlined
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
Mateusz Urbanek
917c19eae5
feat(logging): using new package containing logrus.Logger instead of global scope logrus ( closes #583 ) ( #699 , @Shanduur )
3 years ago
Łukasz Oleś
5d0d0acc77
[FIX] Do not override hostIP when hostPort is missing ( #693 , @lukaszo )
3 years ago
Thorsten Klein
a5c1d3becb
[Enhancement] Docs: update for v5 (first iteration) ( #682 )
3 years ago
iwilltry42
b94a057d9a
cleanup completion functions
3 years ago
iwilltry42
2516cad12e
allow for adding ports to a running cluster via the loadbalancer
3 years ago
iwilltry42
d41b49d423
document using new nodefilter syntax with : instead of [] for indexing
3 years ago
iwilltry42
8e29ad4f1a
add some more portmapping work
3 years ago
iwilltry42
f6c3bd2e8b
clusterCreate: use tempfile with expanded env vars as viper input file
3 years ago
ejose19
bfead49c46
[Enhancement] Refactoring: normalize label flags (k3s node & runtime) ( #598 , @ejose19 )
3 years ago
Thorsten Klein
261ac0faf4
[BREAKING] Config File Enhancements: v1alpha3, migrations, generic k3s-args ( #605 )
...
Excerpt:
- new version v1alpha3 with k3s extraArgs using node filters
- reflected in CLI via --k3s-arg
- new migration option to migrate (internally and via cli) from v1alpha2
to v1alpha3
- enhancements to how config files are being read
- e2e tests for config file migration
3 years ago
iwilltry42
831e58fdce
init clusteredit
3 years ago
iwilltry42
bb237d3389
fix: do not allow the same direct port-mapping on more than one node
3 years ago
iwilltry42
6c06208b8f
document using new nodefilter syntax with : instead of [] for indexing
3 years ago
iwilltry42
9574002b38
add some more portmapping work
3 years ago
iwilltry42
7db9275a5b
clusterCreate: use tempfile with expanded env vars as viper input file
3 years ago
ejose19
1deb0aa64d
[Enhancement] Refactoring: normalize label flags (k3s node & runtime) ( #598 , @ejose19 )
3 years ago
Thorsten Klein
99fe3c75c4
[BREAKING] Config File Enhancements: v1alpha3, migrations, generic k3s-args ( #605 )
...
Excerpt:
- new version v1alpha3 with k3s extraArgs using node filters
- reflected in CLI via --k3s-arg
- new migration option to migrate (internally and via cli) from v1alpha2
to v1alpha3
- enhancements to how config files are being read
- e2e tests for config file migration
3 years ago