Ian Campbell
eb0fde3a10
kubernetes: update yml
...
Signed-off-by: Ian Campbell <ijc@docker.com >
2017-10-03 15:18:21 +01:00
Ian Campbell
c0a3656eb3
kubernetes: update to kub dns 1.14.5
...
Signed-off-by: Ian Campbell <ijc@docker.com >
2017-10-03 15:08:43 +01:00
Ian Campbell
72dff9059d
kubernetes: arrange for kubelet-plugins directory to be persistent
...
/usr/libexec/kubernetes/kubelet-plugins is a new path in Kube 1.8 (related to
flexvolumes) which should be persisted. Like /etc/cni and /opt/cni we also need
to arrange for this path to be valid in the host environment (since various
system containers will try and mount bind mount it).
Signed-off-by: Ian Campbell <ijc@docker.com >
2017-10-03 15:08:43 +01:00
Ian Campbell
57a2ae4318
kubernetes: adjust for v1.8 bootstrapping arrangements.
...
With kube 1.8 kubeadm initially configures worker nodes with a
bootstrap-kubelet.conf. Adjust our start of day scripting to DTRT.
Signed-off-by: Ian Campbell <ijc@docker.com >
2017-10-03 15:08:43 +01:00
Ian Campbell
f85208c74a
kubernetes: Bump to v1.8.0
...
Signed-off-by: Ian Campbell <ijc@docker.com >
2017-10-03 15:08:37 +01:00
Ian Campbell
9a99164cf7
kubernetes: Use /etc/kubernetes rather than /var/lib/kubelet
...
This is a bind mount, but /etc/kubernetes is the path formally expected/create
by kubeadm.
Signed-off-by: Ian Campbell <ijc@docker.com >
2017-10-03 14:59:54 +01:00
Rolf Neugebauer
6e58dc2940
Merge pull request #2532 from eyz/linuxkit-format-device-filter
...
format: blkid content check, format argument, and verbose argument
2017-10-03 11:30:00 +01:00
Isaac Rodman
0c23a5f3ce
updated linuxkit/format tag to linuxkit/format:f180a74d878c8c0c86f6208f9311474c91452a79
...
Signed-off-by: Isaac Rodman <isaac@eyz.us >
2017-10-02 15:11:13 -07:00
Ian Campbell
9f414f429c
kubernetes: bump yml
...
Signed-off-by: Ian Campbell <ijc@docker.com >
2017-10-02 10:53:12 +01:00
Ian Campbell
6d387bf59d
kubernetes: do not try to re-init the cluster on subsequent boots
...
If `kubelet.conf` already exits then don't try to redo `kubeadm`, no matter
what the metadata requests.
Signed-off-by: Ian Campbell <ijc@docker.com >
2017-10-02 10:50:06 +01:00
Ian Campbell
6ae72e8f50
kubernetes: update yml
...
Signed-off-by: Ian Campbell <ijc@docker.com >
2017-09-29 10:07:11 +01:00
Ian Campbell
f02c79e733
kubernetes: cri-containerd v1.0.0-alpha.0
...
Signed-off-by: Ian Campbell <ijc@docker.com >
2017-09-29 10:04:16 +01:00
Ian Campbell
5804f9db3c
kubernetes: rename /etc/kubelet.conf to /etc/kubelet.sh.conf
...
To help reduce confusion from this file (which configures our `kubelet.sh`
wrapper) vs `/var/lib/kubeadm/kubelet.conf` (which is created by `kubeadm` and
configures `kubelet` itself).
Signed-off-by: Ian Campbell <ijc@docker.com >
2017-09-29 10:04:16 +01:00
Rolf Neugebauer
ab2333d70e
Update YAML files with new kernels
...
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com >
2017-09-28 15:45:23 +01:00
Ian Campbell
f626f0ee65
kubernetes: Update yml for cri-containerd
...
Signed-off-by: Ian Campbell <ijc@docker.com >
2017-09-27 17:04:37 +01:00
Ian Campbell
2e5b1579e0
kubernetes: bump to latest cri-containerd
...
This vendors containerd v1.0.0-beta.1
Enable seccomp support at build time.
Requires /dev bind mount so it can use /dev/disk/by-uuid to resolve devices to
uuids.
Signed-off-by: Ian Campbell <ijc@docker.com >
2017-09-27 17:01:07 +01:00
Ian Campbell
c227c31e75
kubernetes: try and make exec-id unique
...
Hopefully hostname + local pid should be unlikely to clash.
Signed-off-by: Ian Campbell <ijc@docker.com >
2017-09-27 17:01:07 +01:00
Ian Campbell
1bdf0df8b6
Update yml for new linuxkit/mount package.
...
Signed-off-by: Ian Campbell <ijc@docker.com >
2017-09-27 16:44:40 +01:00
Ian Campbell
f30996438d
kubernetes: bump yml
...
Signed-off-by: Ian Campbell <ijc@docker.com >
2017-09-26 11:11:28 +01:00
Ian Campbell
a2d052b3df
kubernetes: disable cAdvisor (in kubelet) from listening on 0.0.0.0:4194
...
Signed-off-by: Ian Campbell <ijc@docker.com >
2017-09-26 11:00:51 +01:00
Ian Campbell
dcd01314c7
kubernetes: add openssl to kubelet container
...
This is needed for certificate operations, such as signing a new user's csr.
Signed-off-by: Ian Campbell <ijc@docker.com >
2017-09-26 11:00:51 +01:00
Ian Campbell
f6f23cbb0b
kubernetes: build kube{let,adm,ctl} from source
...
Signed-off-by: Ian Campbell <ijc@docker.com >
2017-09-26 11:00:44 +01:00
Ian Campbell
563ee76cb5
Update yml
...
Pulling in containerd v1.0.0-beta.1.
Fixes #2533 .
Signed-off-by: Ian Campbell <ijc@docker.com >
2017-09-25 13:54:24 +01:00
Rolf Neugebauer
cc200d296a
Merge pull request #2527 from eyz/linuxkit-dhcpcd-CAP_SYS_ADMIN
...
added capability to pkg/dhcpcd for sethostname
2017-09-21 20:53:16 +01:00
Isaac Rodman
542ad766b7
switched linuxkit/dhcpcd hash to d4408777ed for PR #2527
...
Signed-off-by: Isaac Rodman <isaac@eyz.us >
2017-09-21 10:47:06 -07:00
Justin Cormack
a5054d5ad4
Update containerd hashes
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2017-09-20 14:35:37 -07:00
Ian Campbell
ac6b8dcf6a
kubernetes: more flexible selection of network stack
...
Also move to 50 in the ordering so things can be added before as well as after.
Signed-off-by: Ian Campbell <ijc@docker.com >
2017-09-20 16:45:56 +01:00
Ian Campbell
451fe22c82
kubernetes: update yml
...
Signed-off-by: Ian Campbell <ijc@docker.com >
2017-09-20 15:26:41 +01:00
Ian Campbell
615f135d61
kubernetes: use coreutils in kubelet container for full fat du
...
Signed-off-by: Ian Campbell <ijc@docker.com >
2017-09-20 15:24:18 +01:00
Ian Campbell
5c4c25cac6
kubernetes: support auto-init via metadata
...
Set KUBE_MASTER_AUTOINIT when using boot.sh to enable. User will need to pick
up the token for other nodes using `kubeadm token list`.
Signed-off-by: Ian Campbell <ijc@docker.com >
2017-09-20 15:23:27 +01:00
Ian Campbell
3ce260cb9a
kubernetes: rework kubelet and kubeadm start of day interations
...
Rework the kubelet.sh script by adding an explicit step which waits for the
configuration to be valid, either by finding appropriate metadata or by waiting
explicitly for kubelet.conf to be created (e.g. by kubeadm) before launching
kubelet. The previous construct was implicitly waiting for kubelet.conf to be
created since kubelet fails if that file is not present.
Pull the set of start of day yaml files to be applied (currently just weave)
out of the kubelet image and into the LinuxKit yaml by providing a directory
which is searched for *.yaml after init.
Signed-off-by: Ian Campbell <ijc@docker.com >
2017-09-20 15:23:27 +01:00
Ian Campbell
7145b40947
kubernetes: bump to cri-containerd a2dbc6ec1ce6
...
Adds some bug fixes and support for copy up of anonymous volume contents from
the underlying image.
Signed-off-by: Ian Campbell <ijc@docker.com >
2017-09-20 15:23:27 +01:00
Rolf Neugebauer
ffe6de1119
Update YAMLs to new kernel versions
...
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com >
2017-09-20 12:14:40 +01:00
Rolf Neugebauer
60dd54670f
Update YAML files with new getty, ip, and sshd package hashes
...
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com >
2017-09-20 11:52:42 +01:00
Ian Campbell
7d7b65aa19
kubernetes: simpler rune to get image digest
...
Signed-off-by: Ian Campbell <ijc@docker.com >
2017-09-19 13:31:38 +01:00
Ian Campbell
b7721daa69
kubernetes: bump yml
...
Signed-off-by: Ian Campbell <ijc@docker.com >
2017-09-19 11:55:56 +01:00
Ian Campbell
965635ab86
kubernetes: Bump to latest cri-containerd
...
Fixes access to GCR private registries and implements mount point propagation.
Signed-off-by: Ian Campbell <ijc@docker.com >
2017-09-19 11:52:51 +01:00
Ian Campbell
3018c8add1
kubernetes: Add force{tag,push} targets to image-cache build
...
Signed-off-by: Ian Campbell <ijc@docker.com >
2017-09-19 11:34:18 +01:00
Ian Campbell
faecbffff2
kubernetes: Bump to v1.7.6
...
Also pickup Weave 2.0.6 and CNI 0.6.0. Note that the CNI plugins have moved to
a new directory.
Signed-off-by: Ian Campbell <ijc@docker.com >
2017-09-19 11:28:18 +01:00
Ian Campbell
50ddffb1a5
kubernetes: Autogenerate file with image cache digests
...
Signed-off-by: Ian Campbell <ijc@docker.com >
2017-09-19 11:28:14 +01:00
Ian Campbell
605c4b6675
kubernetes: Move images for caches into separate file
...
Will be auto-generated.
Signed-off-by: Ian Campbell <ijc@docker.com >
2017-09-19 11:28:14 +01:00
Justin Cormack
2010d999ca
update hashes for init
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2017-09-18 11:53:02 -07:00
Ian Campbell
5ab6c03a08
kubernetes: Add yaml metadata
...
Signed-off-by: Ian Campbell <ijc@docker.com >
2017-09-18 14:44:40 +01:00
Ian Campbell
7e19d38821
kubernetes: use a common base kube yml file
...
With the master tailoring for docker now being in docker-master.yml,
kube-master and kube-node are identical, so just use a single kube.yml.
The reference to kube-master.yml in README.md is obsolete, so just drop it.
Signed-off-by: Ian Campbell <ijc@docker.com >
2017-09-18 14:44:27 +01:00
Ian Campbell
1fa059bbd2
kubernetes: allow selection of runtime engine (docker vs cri-containerd)
...
Currently this is at build time
Signed-off-by: Ian Campbell <ijc@docker.com >
2017-09-18 14:43:23 +01:00
Ian Campbell
445dcc0ac2
kubernetes: Add cri-containerd package
...
Signed-off-by: Ian Campbell <ijc@docker.com >
2017-09-18 14:39:22 +01:00
Ian Campbell
80dff9fe99
kubernetes: update yml
...
Signed-off-by: Ian Campbell <ijc@docker.com >
2017-09-18 14:37:39 +01:00
Ian Campbell
b6fbc82e41
kubernetes: Configuration of kubelet via file
...
This allows cri-containerd and docker based systems to pass the correct options
via composition of yml files, while keeping the kubelet service stanza common.
Since bind mounts are not conditional on the presence of the source we need to
create an empty file in the docker case.
Signed-off-by: Ian Campbell <ijc@docker.com >
2017-09-18 14:25:54 +01:00
Ian Campbell
b6d7f769be
kubernetes: Link /etc/kubernetes to /var/lib/kubeadm
...
In some configurations /etc/kubernetes needs to be a valid host path.
Signed-off-by: Ian Campbell <ijc@docker.com >
2017-09-18 14:25:54 +01:00
Ian Campbell
1e15243b11
kubernetes: Enable net.ipv4.ip_forward
...
This doesn't seem to be necessary when using Docker Engine as the CRI backend,
but in general it is.
The sysctl container must be writeable to allow the
/etc/sysctl.d/01-kubernetes.conf mount point to be created. See #2503 .
Signed-off-by: Ian Campbell <ijc@docker.com >
2017-09-18 14:25:54 +01:00