Commit Graph

76 Commits

Author SHA1 Message Date
Ciprian Hacman a716ac17f4 Add support for Docker 19.03.4 2019-10-31 11:42:47 +02:00
hwdef bc7d07035b dnsprovider: fix static check 2019-10-24 11:13:55 +08:00
Justin SB cdcf72b0c9
Pull centos.org packages from the vault
This isn't as nice as debian's vault, in that it doesn't contain the
latest packages.  But it appears that once a package is in the vault,
it should stay there.

Source from the vault to unbreak 1.13.
2019-09-25 10:15:28 -04:00
Kubernetes Prow Robot 30c6f65300
Merge pull request #6957 from austinmoore-/skip-docker-install
Skip Docker install
2019-09-18 14:55:00 -07:00
Mike Splain 3af3f81a18
Fix gofmt 2019-09-18 11:21:45 -04:00
Ivan Garcia d0db05defa Updated container-selinux url to pint to the right path 2019-09-17 14:57:13 -07:00
Austin Moore 4695e7d03c
Move SkipInstall to DockerConfig 2019-09-17 11:55:08 -04:00
mikesplain 9e55b8230a Update copyright notices
Also cleans some white spaces
2019-09-09 14:47:51 -04:00
Cassandra Comar 9ba043330a Fix package installation by switching ntp to chrony and directly installing container-selinux 2019-07-19 09:11:56 -04:00
Cassandra Comar f63eb0a066 Add support for RHEL 8 2019-07-19 09:11:43 -04:00
Kubernetes Prow Robot 1798ddfa0e
Merge pull request #7084 from mazzy89/flatcar_support
Flatcar support
2019-06-20 06:38:48 -07:00
Austin Moore de339bf72d
Add configuration to skip docker installs 2019-06-12 14:16:11 -04:00
Salvatore Mazzarino c7381f9a34 Flatcar support
Signed-off-by: Salvatore Mazzarino <dev@mazzarino.cz>
2019-05-31 12:20:27 +02:00
Jesse Haka 60756136c8 Add Debian 10 (buster) support 2019-05-26 15:34:39 +03:00
Michael Frister 691c459ae6 Fix Docker not being installed on Ubuntu 16.04
This only affects the default Docker version for 1.12 (18.06.3).
2019-05-14 10:25:49 +02:00
Justin SB 3e33ac7682
Change code from glog to klog
We don't call klog.InitFlags yet, because that will cause a flag
redefinition error until we get everyone to stop using glog.  That
will happen when we update to k8s 1.13.
2019-05-06 12:54:51 -04:00
Kubernetes Prow Robot 00950767c2
Merge pull request #6564 from usabilla/no-docker-prestart
Remove docker-prestart hook
2019-03-17 23:25:11 -07:00
Justin SB 057c19f8bb
Fix some of the docker package names & versions
Follow up to #6347 - add a test for some of the names based on some
heuristics, and fix some of the problems that popped up.
2019-03-15 00:09:59 -04:00
Benoit Sigoure e4691cd704 nodeup: Add support for Docker 18.09.3.
Starting from Docker 18.09.0, the Docker distribution has been split in
3 packages: the Docker daemon, the Docker CLI, and for containerd.  This
adds a twist to how to upgrade Docker from the base image as the daemon
and CLI packages must be installed at the same time, otherwise dpkg/rpm
will refuse to upgrade (the new CLI is incompatible with the old package
and the daemon can't be installed without first installing the CLI and
the new containerd, so the upgrade MUST happen in a single transaction).

This code change thus adds the possibility to specify additional packages
to install in the same dpkg/yum transaction, such as the Docker CLI and
containerd in nodeup, and the ability to apply the multi-package upgrade
atomically with dpkg/rpm.

We also use this new mechanism for the SELinux policy on RHEL/CentOS.
2019-03-04 15:39:12 -08:00
Steven McDonald fe249eabbf Remove docker-prestart hook
This breaks networking if Docker is restarted
(https://github.com/kubernetes/kops/issues/6191).

The Docker issue linked in the hook's comments has been closed for
over 3 years, and this workaround has not been used by upstream
Kubernetes for over a year:

  5f9735de53 (diff-af1d281c3ce49f7bfe110f7c64c96fdc)

It therefore seems unlikely that this hook is still necessary.
2019-03-01 13:43:38 +01:00
Kubernetes Prow Robot 743b319fc9
Merge pull request #6506 from justinsb/chattr_docker_runc_17_03_2
Try using chattr to mark docker-runc as immutable
2019-02-25 07:22:12 -08:00
Justin SB 5d28bed21f
Map docker 18.06.3
Docker 18.06.2 on RHEL/Centos did not actually contain the fix, so we
need 18.06.3.
2019-02-23 17:19:44 -05:00
Justin SB 9bfa0cdd2a
Try using chattr to mark docker-runc as immutable
May be a workaround for CVE-2019-5736, is defense in depth in any case.
2019-02-20 22:26:44 -05:00
Kubernetes Prow Robot 823f769a95
Merge pull request #6492 from justinsb/package_names_for_container_selinux
Fix package name & version for container-selinux
2019-02-20 08:14:50 -08:00
Justin SB f094d16d0f
Fix package name & version for container-selinux 2019-02-19 21:25:38 -05:00
Justin SB ea4e57145c
Workaround for overlay2 vs rhel-family docker bug
Docker 17.x with rhel-family fails to detect overlay2 correctly, and
need us to pass overlay2.override_kernel_check=true for docker to
correctly detect overlay2 support.
2019-02-19 21:25:12 -05:00
mikesplain 54c969c521 Add debian jessie patch for CVE-2019-5736 2019-02-12 08:42:49 -05:00
JuanJo Ciarlante 6bb897d7ac
add Xenial, fix Stretch Version to 18.06.2~ce~3-0~debian (same as for Xenial, Bionic, Stretch) 2019-02-11 19:44:25 -03:00
JuanJo Ciarlante b761a809d5
add 18.06.2 entries instead of replacing 18.06.1 ones 2019-02-11 17:05:12 -03:00
JuanJo Ciarlante 49615d5afa [jjo] update docker-ce 18.06 for CVE-2019-5736
Fixes #6459.

* Update CoreOS, Debian Stretch and Ubuntu Bionic
  docker-ce packages to 18.06.2
2019-02-11 16:26:17 -03:00
Naresh Kumar Amrutham 6a0bdfda31 fixed comment 2019-01-15 10:04:41 -08:00
Naresh Kumar Amrutham c5c26fe4d2 include dependency container-selinux for docker v17.09 2019-01-15 10:01:28 -08:00
Naresh Kumar Amrutham f1fb335fbe include docker 18.06.1 missed dependency
container-selinux-2
2019-01-14 14:40:13 -08:00
Bruno 069db70f57 Add Docker 18.06.1 for CentOS and RHEL 7 2018-12-12 11:46:22 +01:00
Ryan Bonham 8489f2a2d9 Fix go formating 2018-09-06 15:15:16 -05:00
Ryan Bonham 6207b56077 Add Docker 18.06.1 for Debian Stretch 2018-09-06 08:59:46 -05:00
Justin Santa Barbara 2faa68426f Docker installation from tar.gz
Ubuntu 18.04 doesn't have a package for docker 17.03, but we can still
support it by using the tar.gz package.

This could be a nice fallback for other operating systems in future,
and it might prove to be more reliable than the OS packages.

But start with supporting ubuntu 18.04 with older docker versions!
2018-07-24 21:58:54 -04:00
Mike Splain 8aa5059038 Initial Bionic Support
Kubernetes doesn't officially support bionic.
Docker has only released 18.03.1 for Bionic.
Kubernetes also doesn't officially support 18.03.1
Use at your own risk.
2018-06-29 11:11:59 -04:00
Justin Santa Barbara 1e381996ce Handle storage flag on COS more carefully
Only clear the flag if there is a docker config file, so that we can
continue to set the storage flag on older COS images.  We could be
smarter about checking if the storage driver is actually set in the
docker config, but for now we just start by logging it.
2018-06-20 19:34:10 -04:00
Justin Santa Barbara ef5936d8b5 Support overlay2 in docker
We also have to stop passing the flag on ContainerOS, because it's set
in /etc/docker/default.json and it's now an error to pass the flag.

That in turn means we move those options to code, which are the last of
those legacy config options.  (We still have a few tasks declaratively
defined though)
2018-06-07 17:11:11 -04:00
Justin Santa Barbara 088d14e2bd docker: Set TasksMax to infinity
Equivalent of https://github.com/kubernetes/kubernetes/pull/51986
2018-06-03 13:14:15 -07:00
Cryptophobia c9cf51f5ad Add docker 17.09.0 version for Debian 9 2018-04-19 12:17:07 -04:00
andrewsykim 89960aff67 coreos/containeros: restart kops-configuration service after docker drop-in is loaded 2018-04-03 12:47:19 -04:00
Louis Munro 487dc33b7e Adds an AfterFiles field to nodetasks.File and makes sure CoreOS uses it 2018-03-26 18:30:36 +00:00
Justin Santa Barbara 90ac573594 Centos: add selinux package dependencies
Issue #4091
2018-03-18 17:49:45 -04:00
Kubernetes Submit Queue d0618e1471
Merge pull request #4014 from blakebarnett/bdb/fix_docker_stretch_url
Automatic merge from submit-queue.

Fix URL for Docker 17.03.2 on Debian Stretch
2017-12-11 06:26:30 -08:00
wannabesrevenge 4661fd5e8e
Fix libcgroup dependency typo
In nodeup/pkg/model/docker.go, libcgroup is listed as a dependency for various environments. A couple times this is misspelled as libgcroup
2017-12-08 13:35:13 -06:00
Blake d3615cb1d9 Fix URL for Docker 17.03.2 on Debian Stretch 2017-12-05 17:40:22 -08:00
Divya Vavili b698c684a9 Add support for docker 17.09.0 version
Signed-off-by: Divya Vavili <vavili.divya@gmail.com>
2017-11-16 11:55:11 -08:00
Mikael Knutsson 2de2ab53a8
Debian Stretch versions for Docker to support K8s 1.8 2017-11-09 10:41:17 +08:00