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
iwilltry42
6c94d7db3d
overall/license: update to year range -2021
3 years ago
Jason
bfcac7ec4a
fix create command's flags typo ( #568 , @Jason-ZW )
...
Signed-off-by: Jason-ZW <zhenyang@rancher.com>
3 years ago
Thorsten Klein
24cf263c73
[FEATURE] IPAM via subnet flag ( #560 )
3 years ago
iwilltry42
45d451a661
[hotfix] use viper fork with fixed stringArray handling from https://github.com/spf13/viper/pull/398
4 years ago
Konrad Malik
e495fe83a8
[FEATURE] Memory Limits ( #494 , @konradmalik )
4 years ago
Alex Sears
f141bc3be8
Fix typo in cluster stop command doc ( #513 , @searsaw )
4 years ago
iwilltry42
e1384c91a2
server: trim the port off the dockerHost as it renders the kubeconfig unusable ( fixes #487 )
4 years ago
Dominik Tomasi
dbfaeb4af3
Fix for KubeAPI Port assignment when using config files ( #490 , @dtomasi )
4 years ago
Konrad Malik
df9859eae6
[ENHANCEMENT] Add config processing and fix hostmode ( #477 , @konradmalik )
4 years ago
iwilltry42
e2a05c1f39
fix/clusterCreate: use StringSlice for k3s-server|agent-arg flag
...
- required due to StringArray incompatibility in Viper
Fixes #482
4 years ago
Thorsten Klein
092f26a4e2
[FEATURE/FIX] Viper Configuration and JSON Schema ( #472 )
4 years ago