89 Commits

Author SHA1 Message Date
Amit Watve
9db34acca8 Unify common logic. 2020-02-10 12:45:10 -08:00
Benjamin Elder
1649222ea1 introduce node and provider interfaces, implement for docker, migrate to these 2019-09-27 20:15:17 -07:00
Benjamin Elder
1b6e537ffc switch error packages 2019-09-11 16:20:41 -07:00
Benjamin Elder
7d1d737524 remove RunLoggingOutputOnFail now that we include output in exec errors 2019-09-09 17:47:36 -07:00
chentanjun
50013db310 fix-up kind typo 2019-08-26 18:18:31 +08:00
Benjamin Elder
245ca10481 fix spelling errors 2019-08-22 21:37:55 -07:00
Benjamin Elder
41794341c4 make all of /var an anonymous volume, use long flags when creating nodes 2019-08-19 17:55:31 -07:00
Benjamin Elder
b22369dade compare host and node image ID when loading images 2019-08-16 16:54:40 -07:00
Benjamin Elder
53f8b72a32 use anonymous volume for /var/lib/kubelet 2019-08-15 15:44:36 -07:00
ethan
3e77b2d412 cleanup: create.go words correction.
Signed-off-by: Guangming Wang <guangming.wang@daocloud.io>
2019-08-10 17:11:20 +08:00
Benjamin Elder
08b3004ee4 make internal API version internal 2019-07-24 23:07:14 -07:00
Darragh Bailey
ce59fa3bff Remove extraneous blank entry from NO_PROXY
Strip trailing whitespace from subnet retrieved from docker network
inspection to prevent splitting returning an array with an extraneous
element of ''.

Enabling use of proxies results in a NO_PROXY value containing an
extraneous element signified by ',,' appearing in the value appearing
in the container runtime environment.

This can be seen by running a `docker network inspect ..` command
locally using the same go format string to retrieve the output.

  echo "'$(docker network inspect bridge -f ...)'"
  '172.17.0.0/16 '

This is due to the embedded space in the format string in order to
provide a delimiter should more than one subnet be returned.

To prevent a subsequent split from returning an array that looks like
"['172.17.0.0/16', '']", should first trim any trailing whitespace.

This changes the NO_PROXY variable in the <cluster>-control-plane and
subsequent services from looking like:

  172.17.0.0/16,,localhost,127.0.0.1,...

to:

  172.17.0.0/16,localhost,127.0.0.1,...
2019-07-05 14:03:22 +01:00
Fernando Llaca
8ccedd8fda Remove ExtraPortMappings from load balancer nodes 2019-06-25 16:17:31 -07:00
Fernando Llaca
07bbc5ee61 Use PortMappings to expose API server and load balancers 2019-06-25 16:17:31 -07:00
Fernando Llaca
61b22ccece First draft implementation of port mappings 2019-06-25 16:17:31 -07:00
Kubernetes Prow Robot
e9e20a8785 Merge pull request #382 from aojea/loadimage
load image only if not present
2019-06-24 15:10:37 -07:00
Kubernetes Prow Robot
4d1ea76acf Merge pull request #628 from amwat/proxy
Automatically add the docker network to no_proxy
2019-06-24 12:46:36 -07:00
Antonio Ojea
765c313b6d Add IPv6 support
This commits adds allows kind to create IPv6 Kubernetes clusters
and makes the code ready to implement dual stack support. For simplicity,
only one address of each ip family is considered.

It adds 2 new options to the v1alpha3 API: ipFamily and serviceSubnet
2019-06-21 11:25:38 +02:00
Antonio Ojea
a50cf33284 Dont set the crictl socket inside the nodes 2019-06-20 23:43:44 +02:00
Antonio Ojea
6946cac2e6 Always get a control plane endpoint 2019-06-19 16:11:28 -07:00
Amit Watve
d2897ef9ab Additionally set lower case envs. Propagate network inspect during node creation. 2019-06-19 14:01:43 -07:00
Amit Watve
632f4a01c2 Add docker network to no_proxy. 2019-06-19 13:42:25 -07:00
Antonio Ojea
347819df63 Add method to inspect images inside nodes 2019-06-11 23:19:27 +02:00
Benjamin Elder
cc9f514361 collect node serial logs 2019-05-03 21:14:29 -07:00
Benjamin Elder
ae4db69b62 break up kubeadm init action into logical actions 2019-05-02 15:59:32 -07:00
Benjamin Elder
6111ccf407 refactor to run external loadbalancer directly and use nginx 2019-05-01 16:15:56 -07:00
Benjamin Elder
857731ba82 fix kind load * 2019-04-30 13:54:29 -07:00
Benjamin Elder
2195291369 eliminate SIGUSR1 2019-04-29 18:25:30 -07:00
Benjamin Elder
37fc6bfd57 containerd 2019-04-29 18:25:26 -07:00
Benjamin Elder
a3afdd82e9 avoid intermediate file in Node.WriteFile 2019-04-03 15:59:46 -07:00
Kubernetes Prow Robot
69e854b2bd Merge pull request #390 from BenTheElder/net-opts
add v1alpha3 network options
2019-03-20 05:31:01 -07:00
Benjamin Elder
f19e356916 fix bad find and replace 2019-03-19 14:01:00 -07:00
Benjamin Elder
6889abd7db address nits 2019-03-19 12:07:18 -07:00
Benjamin Elder
6fa28abd4b implement network options 2019-03-19 11:10:09 -07:00
Kubernetes Prow Robot
f7df88ee90 Merge pull request #372 from aojea/proxy_env
handle lowercase proxy variables
2019-03-13 14:12:29 -07:00
Antonio Ojea
99bc3c148c Use an internal struct for the proxy settings 2019-03-13 11:24:02 +01:00
Antonio Ojea
ba1238c82e Unify http proxy settings configuration 2019-03-12 13:04:18 +01:00
Antonio Ojea
188f1337fb handle lowercase proxy variables 2019-03-12 09:31:25 +01:00
Benjamin Elder
92391f2b5c switch node creation to constants 2019-03-10 20:47:31 -07:00
Kubernetes Prow Robot
8c5dd0779b Merge pull request #364 from BenTheElder/refactor-part-3
Refactor part 3: speed up creation 💨
2019-03-08 12:36:54 -08:00
Benjamin Elder
49fe9db2d5 make docker image load concurrent 2019-03-07 18:42:03 -08:00
fabriziopandini
8c830eb587 revert-control-planes-order 2019-03-07 23:54:51 +01:00
Kubernetes Prow Robot
45ed3d2301 Merge pull request #360 from BenTheElder/refactor-part-2
Refactor part 2
2019-03-06 20:48:58 -08:00
Benjamin Elder
cd6c3e1b4a improve emoji 2019-03-06 17:10:16 -08:00
Benjamin Elder
b93635f813 fix a few bugs 2019-03-06 17:10:16 -08:00
Benjamin Elder
a1cbe2c30f port join action 2019-03-06 17:10:16 -08:00
Benjamin Elder
6e0bf49b34 add SecondaryControlPlaneNodes 2019-03-06 17:10:15 -08:00
Benjamin Elder
bae4adbeb8 refactor node roles identification 2019-03-06 17:10:15 -08:00
Benjamin Elder
1a04bea7df make nodes concurrent safe 2019-03-06 17:10:15 -08:00
Benjamin Elder
f62987270c add config action 2019-03-06 17:10:15 -08:00