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
2021-09-06 17:44:38 +02:00
iwilltry42
9efe980789
overall: make error handling and error logs a bit more streamlined
2021-08-31 09:33:39 +02:00
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
2021-08-24 10:18:53 +02:00
iwilltry42
8a745062ed
Merge branch 'main' into main-v5
2021-08-18 13:38:39 +02:00
Mateusz Urbanek
917c19eae5
feat(logging): using new package containing logrus.Logger instead of global scope logrus ( closes #583 ) ( #699 , @Shanduur)
2021-08-18 12:22:44 +02:00
Łukasz Oleś
5d0d0acc77
[FIX] Do not override hostIP when hostPort is missing ( #693 , @lukaszo)
2021-08-16 14:58:33 +02:00
Thorsten Klein
a5c1d3becb
[Enhancement] Docs: update for v5 (first iteration) ( #682 )
2021-07-21 10:38:49 +02:00
iwilltry42
b94a057d9a
cleanup completion functions
2021-07-20 13:05:20 +02:00
iwilltry42
bb237d3389
fix: do not allow the same direct port-mapping on more than one node
2021-07-07 15:52:18 +02:00
iwilltry42
6c06208b8f
document using new nodefilter syntax with : instead of [] for indexing
2021-07-07 15:30:04 +02:00
iwilltry42
9574002b38
add some more portmapping work
2021-07-07 15:30:04 +02:00
iwilltry42
7db9275a5b
clusterCreate: use tempfile with expanded env vars as viper input file
2021-07-06 13:20:26 +02:00
ejose19
1deb0aa64d
[Enhancement] Refactoring: normalize label flags (k3s node & runtime) ( #598 , @ejose19)
2021-07-06 13:20:18 +02:00
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
2021-07-06 13:20:17 +02:00
iwilltry42
6c94d7db3d
overall/license: update to year range -2021
2021-05-21 13:07:59 +02:00
Jason
bfcac7ec4a
fix create command's flags typo ( #568 , @Jason-ZW)
...
Signed-off-by: Jason-ZW <zhenyang@rancher.com>
2021-04-26 10:32:17 +02:00
Thorsten Klein
24cf263c73
[FEATURE] IPAM via subnet flag ( #560 )
2021-04-20 07:39:51 +02:00
iwilltry42
45d451a661
[hotfix] use viper fork with fixed stringArray handling from https://github.com/spf13/viper/pull/398
2021-03-30 15:26:37 +02:00
Konrad Malik
e495fe83a8
[FEATURE] Memory Limits ( #494 , @konradmalik)
2021-03-29 17:52:15 +02:00
iwilltry42
e1384c91a2
server: trim the port off the dockerHost as it renders the kubeconfig unusable ( fixes #487 )
2021-02-09 16:21:55 +01:00
Dominik Tomasi
dbfaeb4af3
Fix for KubeAPI Port assignment when using config files ( #490 , @dtomasi)
2021-02-09 15:47:17 +01:00
Konrad Malik
df9859eae6
[ENHANCEMENT] Add config processing and fix hostmode ( #477 , @konradmalik)
2021-02-09 15:17:58 +01:00
iwilltry42
e2a05c1f39
fix/clusterCreate: use StringSlice for k3s-server|agent-arg flag
...
- required due to StringArray incompatibility in Viper
Fixes #482
2021-02-06 21:00:10 +01:00
Thorsten Klein
092f26a4e2
[FEATURE/FIX] Viper Configuration and JSON Schema ( #472 )
2021-02-03 11:31:21 +01:00
iwilltry42
7b8506b1d9
fix: proper handling of registries and networks when deleting clusters/nodes
2021-01-19 18:53:32 +01:00
iwilltry42
4e2b1baa62
add warning, if someone mounts a file at the default registries.yaml location, while they also use a different kind of registry spec
2021-01-18 15:52:16 +01:00
iwilltry42
7343c3dbe2
init merging registry config
2021-01-18 08:46:14 +01:00
Thorsten Klein
c44c576d69
[Refactoring/Preparation] use real port structs as prep for registries ( #427 )
2020-12-11 16:36:10 +01:00
Thorsten Klein
ecc025b35e
[Feature] Registry for v4 & Restructure Cluster Creation ( #334 )
2020-12-09 15:59:20 +01:00
Thorsten Klein
778f80d8fd
[FEATURE] Config File ( #351 )
2020-12-04 16:02:37 +01:00
iwilltry42
d7b25ac6ab
v3 -> v4
2020-12-04 13:45:57 +01:00
Thorsten Klein
a5d2910f29
[Feature] clusterCreate: add back --env/-e flag to inject environment variables ( #409 )
2020-11-23 10:23:45 +01:00
Thorsten Klein
d0158c97c6
clusterCreate: add docker's --gpus flag ( #395 )
2020-11-03 20:12:52 +01:00
Lionel Nicolas
ffe8c9697c
add ability to set container labels on nodes using --label/-l
...
This supports node filters as is already done for '--volume' and '--port'.
2020-10-16 20:46:04 -04:00
iwilltry42
11cc797922
overall/logging: new trace log level
...
- new root flag '--trace' with precedence over '--verbose'
- some new trace logs
- migrated some debug logs to trace logs to reduce debug verbosity
2020-10-07 08:58:03 +02:00
iwilltry42
a51063966f
Merge branch 'main' of github.com:rancher/k3d into enhancement/host-ip
2020-10-05 15:55:15 +02:00
iwilltry42
d063482a32
clusterCreate: add --no-hostip flag to disable the automatic injection of the host.k3d.internal entry into /etc/hosts and CoreDNS
2020-10-05 15:19:00 +02:00
iwilltry42
6ddcd659da
docs: quote node filters (ref #348 )
2020-10-02 12:27:33 +02:00
iwilltry42
f6028305c9
clusterCreate: add '--no-rollback' flag to ease debugging cluster creation failures
2020-09-19 09:24:43 +02:00
iwilltry42
1e228619fd
clusterCreate: fix inconsistent behavior of update-default-kubeconfig and switch-context flags. Fixes #314
2020-08-05 13:44:37 +02:00
iwilltry42
1422a87945
kubeconfig/docs: clarify kubeconfig get/print/show and merge/write
2020-08-05 12:25:06 +02:00
iwilltry42
674e943be8
overall: fix examples/docs for changed flags
2020-07-17 07:59:00 +02:00
iwilltry42
41c9bdc87a
prettify help text for cluster create (volume and api-port flags)
2020-07-15 07:00:32 +02:00
iwilltry42
ec3f10ec57
use server/agent instead of master/worker
2020-07-14 20:29:33 +02:00
iwilltry42
84d6063e4b
Merge branch 'master' into enhancement/noun-verb-syntax
2020-07-14 15:31:12 +02:00
iwilltry42
b02c783130
adjust toplevel pkg functions to new syntax
2020-07-14 15:02:51 +02:00
iwilltry42
93daef1098
adjust cluster create output to new syntax
2020-07-14 12:53:12 +02:00
iwilltry42
93dc966411
clusterC: fix description
2020-07-14 12:39:20 +02:00
iwilltry42
08f7a47119
new syntax for cluster creation and kubeconfig manipulation
2020-07-08 15:03:28 +02:00