Ahmed AbouZaid
e306d63dd1
docs: add examples for config embedded and external files ( #1432 )
5 months ago
Ahmed AbouZaid
9eaa6c4d8e
feat: support config embedded and external files ( #1417 )
5 months ago
iwilltry42
f73fe36eb0
change/docs: copyright notice year
10 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
Thorsten Klein
831c0a2f66
fix: custom registry config not parsed correctly ( #1292 )
1 year ago
iwilltry42
93a67d712e
change: golangci-lint fix whitespaces
1 year ago
Max Sargent
dc9f05036a
change: allow full K3s registry configuration ( #1215 )
1 year ago
dan-ash
88c5f18792
Add support for ulimits ( #1264 )
1 year ago
Sunghoon Kang
24bb5f4493
fix: print consistent json/yaml output ( #1094 )
2 years ago
Georg Grauberger
1bc5a71418
Fix default config template for v1alpha4 ( #1091 )
2 years ago
iwilltry42
60ec077afd
add: v1alpha4 add registry create proxy config + documentation
2 years ago
flaneur
eb5bd52638
feat: allow set image in simpleConfig.Registries.Create ( #1056 )
2 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
Erik Godding Boye
9a2a3ec0ff
[FEATURE] Config file compatible with Kustomize ( #945 )
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
f004535ac5
add: schema versions in-repo to link to from schemastore.org ( #942 )
...
- embed a versions file in the k3d repo that links to the existing config schemas as per https://github.com/SchemaStore/schemastore/pull/2057#issuecomment-1024470105
- inspired by and mostly copied from https://github.com/ory/kratos/blob/master/.schema/version.schema.json 🙏
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
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
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
594e3ced3f
config: fix failing v1alpha2 -> v1alpha3 migration ( #799 )
...
- add validation as extra step after migration
- add missing json struct tags to new v1alpha3 config fields
- add unit tests
- add missing `omitempty` tags to configs to avoid (un-)marshalling issues
- drop `string` type for `time.Duration` type field in JSON Schema (doesn't work properly sometimes due to broken handling of time.Duration as per https://github.com/golang/go/issues/10275 )
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
Thorsten Klein
3b9d8373e1
[Docs] v5 update ( #740 )
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
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
iwilltry42
ac527e7c8a
fix nilpointer in config transformation when lb is disabled ( fixes #695 )
3 years ago
Thorsten Klein
a5c1d3becb
[Enhancement] Docs: update for v5 (first iteration) ( #682 )
3 years ago
iwilltry42
2516cad12e
allow for adding ports to a running cluster via the loadbalancer
3 years ago
iwilltry42
4132757f34
ports: no nodefilter or loadbalancer nodefilter should default to use all servers & agents as upstream
3 years ago
iwilltry42
1944c06dad
properly handle --port 1234:4321@loadbalancer:proxy style port mappings which should default to all nodes as upstream
3 years ago
iwilltry42
8fef6aee09
fix usage of the new loadbalancer type and ordering when cluster is created
3 years ago
iwilltry42
d41b49d423
document using new nodefilter syntax with : instead of [] for indexing
3 years ago
iwilltry42
91db3f647c
changes when creating clusters + new nodefilter syntax
...
- generate node names when transforming from simple to cluster config
- ClusterCreate(clusterconfig) should have a ready made config and not
generate variables
- ClusterCreate() only prep LB if not already present (to be removed)
- cluster struct: serverloadbalancer is now of type LoadBalancer (Node +
Config)
- use new nodefilter syntax with 'id:index:suffix' instead of
'id[index]' everywhere
- use suffix when creating the LB
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
2162504ee1
transformsimple: move transformports to own function
3 years ago
iwilltry42
bb237d3389
fix: do not allow the same direct port-mapping on more than one node
3 years ago