342 Commits

Author SHA1 Message Date
iwilltry42
4d8876f649
add --overwrite flag for get-kubeconfig v1.5.0 2020-01-21 11:36:00 +01:00
Thorsten Klein
c2289c71b6
Merge pull request #168 from inercia/inercia/e2e
[ENHANCEMENT] Add e2e tests (thanks @inercia )
2020-01-21 11:13:00 +01:00
Alvaro Saurin
f80d7e8ba0
Rename DinD runner
Signed-off-by: Alvaro Saurin <alvaro.saurin@gmail.com>
2020-01-21 10:53:04 +01:00
Alvaro Saurin
56f80d766f
Run the e2e in DinD
Signed-off-by: Alvaro Saurin <alvaro.saurin@gmail.com>
2020-01-21 10:53:04 +01:00
iwilltry42
c1190c669a
update go.sum 2020-01-21 10:53:04 +01:00
iwilltry42
c972374434
fix e2e tests in dind 2020-01-21 10:53:03 +01:00
Alvaro Saurin
fcaf3d79f4
e2e tests for the registry
Signed-off-by: Alvaro Saurin <alvaro.saurin@gmail.com>
2020-01-21 10:53:03 +01:00
Alvaro Saurin
a3696aa3d4
Poor-man e2e tests
Signed-off-by: Alvaro Saurin <alvaro.saurin@gmail.com>
2020-01-21 10:53:03 +01:00
Thorsten Klein
d8951c0eb3
Merge pull request #169 from inercia/inercia/fix_registry_detection
[FIX] Fix the Registry detection (thanks @inercia )
2020-01-21 07:47:23 +01:00
Alvaro Saurin
4aff326f89
Fix the Registry detection
Signed-off-by: Alvaro Saurin <alvaro.saurin@gmail.com>
2020-01-20 21:22:41 +01:00
Thorsten Klein
3896f5a019
Merge pull request #161 from inercia/inercia/registry
[Feature] New option for starting a local registry (thanks @inercia )
2020-01-19 20:07:54 +01:00
Alvaro Saurin
e54f762832
Updated vendored deps
Signed-off-by: Alvaro Saurin <alvaro.saurin@gmail.com>
2020-01-17 20:41:44 +01:00
Alvaro Saurin
284db4d74b
New option for starting a local registry.
A new option, --enable-registry, has been added for starting a local, private registry.
This registry will be shared between all the k3d clusters created with --enable-registry.
The registry container will be removed when the last of them is removed.

Two extra options, --registry-name and --registry-port, have been included for specifying
the hostname and port where the registry will be available.

Signed-off-by: Alvaro Saurin <alvaro.saurin@gmail.com>
2020-01-17 20:41:10 +01:00
Thorsten Klein
7ed52c687d
Merge pull request #163 from lionelnicolas/feature/docker-labels-support
[Feature] add ability to set docker labels on worker nodes (thanks @lionelnicolas )
2020-01-17 20:18:46 +01:00
iwilltry42
7275929907
improve help text and default for --wait flag 2020-01-17 12:39:48 +01:00
Thorsten Klein
e9007ba2ef
Merge pull request #166 from AWKIF/patch-1
Update faq.md (thanks @AWKIF )
2020-01-16 14:46:01 +01:00
rev
92e19d7e17
Update faq.md
Needed update to make it work
2020-01-16 11:02:37 +01:00
Lionel Nicolas
739486e382 add support for node specifier in labels 2020-01-16 00:46:36 -05:00
Lionel Nicolas
5c5c4c54c6 fix missing "agents" node-specifier for publish ports 2020-01-16 00:43:25 -05:00
Lionel Nicolas
59224236b9 add ability to set docker labels on worker nodes 2020-01-14 08:28:52 -05:00
iwilltry42
01a0526301
update golangci-lint and add some helpers 2020-01-13 16:36:38 +01:00
iwilltry42
2c747cf6d7
adapt grabbing the latest k3s version in the Makefile to the differences between git and dockerhub tags (+ and -) 2020-01-13 16:00:22 +01:00
iwilltry42
dc4c29361f
return error if no image was specified for import 2020-01-03 15:51:28 +01:00
Thorsten Klein
8a65268312
Merge pull request #102 from rancher/feature/add-node-command
[Feature] `add-node` command and deprecation cleanup
v1.4.0
2020-01-02 14:47:35 +01:00
iwilltry42
97bebbad66
add note to add-node command 2020-01-02 14:42:53 +01:00
iwilltry42
6e05342812
Merge branch 'master' of https://github.com/rancher/k3d into feature/add-node-command 2020-01-02 14:42:12 +01:00
iwilltry42
122ea4637a
wait for kubeconfig to be written when --wait is set 2020-01-02 14:37:27 +01:00
Thorsten Klein
0eaaef4c45
Merge pull request #158 from chrisjohnson/add-example-non-trusted-ca
Fix up examples, remove unnecessary port reference and use $HOME so t…
2019-12-24 15:43:27 +01:00
Chris Johnson
f9fe8ef0c1 Fix up examples, remove unnecessary port reference and use $HOME so the examples are mac compatible 2019-12-24 09:39:27 -05:00
Thorsten Klein
99d6a18be7
Merge pull request #157 from chrisjohnson/add-example-non-trusted-ca
Add example for non-publicly-trusted CA (thanks @chrisjohnson )
2019-12-24 13:36:19 +01:00
Chris Johnson
b1b7e957bc Add example for non-publicly-trusted CA 2019-12-23 20:33:29 -05:00
iwilltry42
c3b799c6e2 add registry.yaml to docs (thanks @pojntfx) 2019-11-22 08:01:08 +01:00
iwilltry42
469b56c253 replace 'default' with clustername in kubeconfig 2019-11-11 11:53:22 +01:00
iwilltry42
576ac040cc add note about kubectl 2019-11-08 10:27:26 +01:00
iwilltry42
fbe93eb039 add more verbose error messages for getKubeconfig and Delete if no flag was set 2019-11-07 15:39:31 +01:00
iwilltry42
10179f8555 add warning for when agent arg is supplied without agents being created 2019-11-07 15:28:14 +01:00
iwilltry42
8079d7d2be exclude .local 2019-11-07 14:41:57 +01:00
Andy Zhou
3fd1061e8c
Merge pull request #137 from M3t0r/fix-127-0-0-1-not-replaced
Fix kubeconfig not pointing to correct host when using docker-machine
2019-11-04 11:56:14 -08:00
Simon Lutz Brüggen
2205264a11 Fix kubeconfig not pointing to correct host
The kubeconfig generated by docker.io/rancher/k3s:v0.10.2 or earlier
sets the cluster.server address to 127.0.0.1. Previously this seems to
have been localhost. And we only replace localhost with the correct
address for our local kubeconfig.

The error this can lead to:
```
$ k3d --version
k3d version v1.3.4
$ docker-machine --version
docker-machine version 0.16.1, build cce350d7
$ docker --version
Docker version 19.03.1, build 74b1e89
$ k3d create
INFO[0000] Created cluster network with ID 649d6f34b84a4df16d2524f0ea0ce69cd4f964a79ae56e2a07bb1ee11d1fce50
INFO[0001] Add TLS SAN for 192.168.99.100
INFO[0001] Created docker volume  k3d-k3s-default-images
INFO[0001] Creating cluster [k3s-default]
INFO[0001] Creating server using docker.io/rancher/k3s:v0.10.2...
INFO[0001] Pulling image docker.io/rancher/k3s:v0.10.2...
INFO[0018] SUCCESS: created cluster [k3s-default]
INFO[0018] You can now use the cluster with:

export KUBECONFIG="$(k3d get-kubeconfig --name='k3s-default')"
kubectl cluster-info
$ export KUBECONFIG="$(k3d get-kubeconfig --name='k3s-default')"
$ kubectl cluster-info

To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.
The connection to the server 127.0.0.1:6443 was refused - did you specify the right host or port?
```
2019-11-04 17:29:39 +01:00
iwilltry42
3b0c095765 add examples for all k3s versions to use a private registry 2019-11-04 10:16:58 +01:00
Thorsten Klein
85b19f7ef7
Merge pull request #135 from fearoffish/update-insecure-registry-example
Update the documentation template for the insecure registry example to be compatible with k3s v0.10.0+ (thanks @fearoffish)
2019-11-04 10:07:45 +01:00
iwilltry42
dc19eb7139 add section about 'NodeHasDiskPressure' issues to FAQ 2019-11-04 10:00:24 +01:00
iwilltry42
e79c3a98d8 add init to worker as well (thanks for the hint @cbandy) 2019-11-04 09:49:22 +01:00
iwilltry42
9b8fcd17be Merge branch 'master' of https://github.com/rancher/k3d into feature/add-node-command v1.4.0-dev.0 2019-11-03 19:52:17 +01:00
iwilltry42
18a3db3d9b remove outdated docs and add simple version command 2019-10-30 15:55:03 +01:00
Jamie van Dyke
02b80fecfc Update the documentation with an up to date template for the insecure registry example 2019-10-29 21:07:51 +00:00
iwilltry42
e22299f485 update version in readme 2019-10-21 14:32:18 +02:00
iwilltry42
6ad5a7b9dd clarify homebrew section 2019-10-21 14:31:57 +02:00
iwilltry42
b9ea408d49 Merge branch 'master' of https://github.com/rancher/k3d into feature/add-node-command 2019-10-21 08:12:48 +02:00
iwilltry42
6d771a20fa error exit if no clusters found v1.3.4 2019-10-21 07:35:07 +02:00