iwilltry42
a8f937fa01
fix: clusterDelete: properly parse config file to avoid failure on v1alpha4
2 years ago
Thorsten Klein
efbabe2168
[Enhancement] Compatibility Tests ( #956 )
...
- fix e2e tests about host.k3d.internal injection by using non-alpine-based test image
- introduce GH Action workflow to matrix-test Docker and K3s versions
- enhance E2E test configurability to support the above
2 years ago
iwilltry42
2c65f7d1fd
ci/gha: docker matrix
2 years ago
Thorsten Klein
dc5a1a5071
[Fix] detect '--disable=coredns' and conditionally disable injection ( #955 )
2 years ago
iwilltry42
fdd4dae1a0
fix: ensure labels on serverlb
3 years ago
Thorsten Klein
33bcd4d80a
fix: mutex on ensureToolsNode to avoid duplicate container name causing error ( #952 )
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
Ikko Ashimine
793fbce86c
Fix typo in node.go ( #949 )
3 years ago
wymli
08d5ae64f7
fix: serverlb should be created before using and restarted unless stopped ( #948 )
3 years ago
allcontributors[bot]
7195da5ed2
docs: add erikgb as a contributor for code ( #946 )
...
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Co-authored-by: Thorsten Klein <iwilltry42@gmail.com>
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
c8eca27bee
Merge branch 'license/2022'
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
a74f8ea18c
Merge pull request #935 from rancher/chore/deps
3 years ago
iwilltry42
edf4c3ed97
tests/e2e: allow option E2E_DIND_VERSION to test with different Docker versions
3 years ago
iwilltry42
4dec2a9d68
chore: update deps
3 years ago
iwilltry42
32f2ca7fbe
chore: update direct dependencies
3 years ago
iwilltry42
e82810aeda
docs: update docker/runc requirement note
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
iwilltry42
280de52b01
tests/e2e: output runtime info for debugging purposes
3 years ago
iwilltry42
e2c20b899c
nodeCreate: do not copy memory limit from node of different role ( fixes #893 )
3 years ago
iwilltry42
0c57cf24ca
v5.2.2: changelog
3 years ago
kuritka
4ffc71d4be
Removing non-existing cluster via configuration
...
Signed-off-by: kuritka <kuritka@gmail.com>
3 years ago
dependabot[bot]
a82731f13b
build(deps): bump mkdocs from 1.2.2 to 1.2.3 in /docs
...
Bumps [mkdocs](https://github.com/mkdocs/mkdocs ) from 1.2.2 to 1.2.3.
- [Release notes](https://github.com/mkdocs/mkdocs/releases )
- [Commits](https://github.com/mkdocs/mkdocs/compare/1.2.2...1.2.3 )
---
updated-dependencies:
- dependency-name: mkdocs
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
3 years ago
Thorsten Klein
bb30c0a89a
docs: add page about k3d concepts (incl. nodefilters) ( #888 )
3 years ago
iwilltry42
2d3ce082d6
docs/faq: enhance example of enabling ephemeral containers
3 years ago
allcontributors[bot]
c331f4f19a
docs: add serverwentdown as a contributor for code ( #883 )
...
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
3 years ago
allcontributors[bot]
b86773c691
docs: add sbaier1 as a contributor for code ( #882 )
...
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
3 years ago
Simon Baier
43e9f9e168
fix(image-loading): mitigate tar load problem ( #881 )
3 years ago
iwilltry42
d243bc9dc1
v5.2.1: changelog
3 years ago
iwilltry42
0bbb5b9f92
fix: available hardcoded K3s version
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
iwilltry42
ca47fac476
waitForLogs: enrich error with scanner error if any
3 years ago
iwilltry42
61f52cc2fa
Readme: cleanup Release overview
3 years ago
iwilltry42
3c783bf523
v5.2.0: changelog
3 years ago
iwilltry42
eae14fa8d6
v5.2.0: docgen
3 years ago
iwilltry42
a580edbe42
GetDockerHost to return host.docker.internal if DfD and local connection (and it's resolvable)
3 years ago
iwilltry42
ebea3387da
getHostIP: fix failing on DfD and init new host.k3d.internal injection
...
- do not close connection of exec process before having read everything
- as a backwards-compatible fix, we now read all logs into a new
bufio.Reader so we can savely close the connection and original reader
- start tools node with --add-host=host.k3d.internal:host-gateway
(docker feature) and use it for getHostIP on DfD (TODO: we can use this
on all platforms)
3 years ago
Thorsten Klein
9b326c2c54
[Feature] Add command to list image tags ( #870 )
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
iwilltry42
23ddbf67b1
clusterStart: only run necessary actions
...
- e.g. can only wait for specific log messages, if the nodes have been
restarted for real and not if they were already running
fixes #847
3 years ago
iwilltry42
d78ef48932
getHostIP: do not emit confusing warning that doesn't affect usability
3 years ago
iwilltry42
7bde77c36e
docs: fix ports in registry usage guide
3 years ago