Commit Graph

663 Commits

Author SHA1 Message Date
Ciprian Hacman 2852c4c657 Update the Docker license 2020-03-15 09:51:03 +02:00
Ciprian Hacman 360a117e02 Add config option for Docker "health-check" 2020-03-15 09:51:03 +02:00
Ciprian Hacman 507230fe75 Move Docker "health-check" to DockerBuilder 2020-03-15 09:47:47 +02:00
Kubernetes Prow Robot 0a6dcce580
Merge pull request #8525 from hakman/docker-tgz
Update support for docker tgz package
2020-03-14 16:40:35 -07:00
Kubernetes Prow Robot e6803d078d
Merge pull request #8312 from simonmacklin/add_cloud_ntp_addresses
Add cloud ntp addresses
2020-03-14 14:12:34 -07:00
Kubernetes Prow Robot 1400528fed
Merge pull request #8727 from hakman/ubuntu-focal
Add support for Ubuntu 20.04 (Focal)
2020-03-11 09:29:37 -07:00
Ciprian Hacman 17bb98b7d7 Add support for Ubuntu 20.04 (Focal) 2020-03-11 06:49:02 +02:00
Peter Rifel a999b3ea61 fix OWNERS labels format
These need to be lists
2020-03-10 22:47:50 -05:00
Kubernetes Prow Robot db435ee7cd
Merge pull request #8717 from rifelpet/owners-labels
Add labels to OWNERS files
2020-03-10 08:23:51 -07:00
Peter Rifel 237a125f2c Add labels to OWNERS files
This will automatically label PRs that touch these directories.

This makes it easier to query GitHub for PRs that affect certain areas of the code.

I mostly used existing labels but created some new ones as well.
2020-03-10 08:35:58 -05:00
Odin Ugedal 56e5aa8416
Fix overflow error when comparing with BPF_FS_MAGIC
0xCAFE4A11 is bigger than the max of int32, so doing int32(uint32(0xCAFE4A11))
(will not compile directly unless done over two lines) will result in 0x-3501b5ef.

For linux/amd64 "fsdata.Type" is an int64, while on darwin/amd64 it is
an uint32. This code is however not supposed to be compiled for darwin,
since it is linux spesific.

Due to some strange errors[0] in the types in "unix.Statfs_t" for 32 bits
systems on linux, we have to explicitly convert to uint to support those (eg.
armv7). If we only need support for 64 bit systems, we can remove the
uint conversion.

[0]: For 32bits systems "fsdata.Type" should be uint32 instead of the
current int32, as it is in the linux kernel. This is due to the types in
glibc that the go types are generated from. For 64 bit systems the type
is correctly set to int64.
2020-03-07 10:28:04 +01:00
Ciprian Hacman a57aba01bf Update support for docker tgz package 2020-03-07 08:20:39 +02:00
Kubernetes Prow Robot 116ec23d47
Merge pull request #8599 from olemarkus/cilium-fix-bpffs-check
Cilium fix bpffs check
2020-02-22 11:14:47 -08:00
Ole Markus With bcafdca7da Various nits 2020-02-22 19:39:34 +01:00
Ole Markus With 7c84e7d962 Return error if statfs fails 2020-02-22 12:54:53 +01:00
John Gardiner Myers 3e95a88717 Fix Test_KubeAPIServer_Builder to use a supported version of Kubernetes 2020-02-21 22:46:36 -08:00
John Gardiner Myers 704f41dbf1 Use supported kubernetes versions in tests 2020-02-21 22:24:29 -08:00
Ole Markus With f2f29d92d6 Properly detect that bpffs has been mounted 2020-02-21 21:52:35 +01:00
Ole Markus With ced8f00201 Add option to use ENI as IPAM mode for Cilium
* Force cilium-operator run on master nodes
* Add option for setting cilium ipam mode
* If cilium ipam mode is eni, add additional permissions to master nodes
* Allow NonMasqueradeCIDR overlap with NetworkCIDR when Cilium ENI is enabled
2020-02-16 19:11:01 +01:00
Kubernetes Prow Robot 13b4e05679
Merge pull request #8461 from justinsb/use_bindmount_for_home_kubernetes_bin
Use BindMount task for /home/kubernetes/bin
2020-02-07 07:45:45 -08:00
Justin SB 761cdfbd47
Use BindMount task for /home/kubernetes/bin
Without this, a reboot on COS does not remount /home/kubernetes/bin with exec permission.
2020-02-07 06:01:07 -05:00
Ciprian Hacman 7048755c0e Add support for containerd v1.3.3 2020-02-07 08:01:09 +02:00
Justin SB 0cb35638f2
Stop logging to /var/log/kops-controller.log
Writing to a hostPath from a non-root container requires file
ownership changes, which is difficult to roll out today.  See
discussion in #8454

We were primarily using the logfile for e2e diagnostics, so we're
going to look into collecting the information via other means instead.

We also haven't yet shipped this logfile in a released version (though
we have shipped it in beta releases)
2020-02-04 06:41:25 -05:00
Peter Rifel 1df957e354 Update godoc.org references to use pkg.go.dev 2020-02-01 11:11:42 -06:00
Roberto Rodriguez Alcala 504ac7545a Fixes regression in e2e tests 2020-01-28 22:26:38 -08:00
Ciprian Hacman 5f930683ed Update support for Amazon Linux 2 2020-01-28 08:13:45 +02:00
Kubernetes Prow Robot ace4c60610
Merge pull request #8407 from rralcala/master
Support additional kube-scheduler config parameters via config file
2020-01-27 13:11:39 -08:00
Roberto Rodriguez Alcala 03af6b80b5 Adds test and fixes incorrect flag 2020-01-27 11:46:12 -08:00
Kubernetes Prow Robot 82b3bd5a0f
Merge pull request #8199 from hakman/containerd-tgz
containerd: Add support for tar.gz package
2020-01-26 22:53:02 -08:00
Roberto Rodriguez Alcala 1298d541cc Updates based on feedback 2020-01-25 12:32:40 -08:00
Roberto Rodriguez Alcala 447b46d109 Fix for copyright and ran update-bazel.sh 2020-01-23 20:11:41 -08:00
Roberto Rodriguez Alcala 7a017396ba Fixes incorrect tag name and copyright year 2020-01-23 19:58:45 -08:00
Roberto Rodriguez Alcala a9f3db63fc Support additional kube-scheduler config parameters via config file
Mentioned in #6942

This change allows using the --config flag and a generated configfile to set
options that were not previously supported and the use via flags is deprecated.
(https://kubernetes.io/docs/reference/command-line-tools-reference/kube-scheduler/)

I thought that it might be better to have them in a config file to ensure
support in newer kubernetes versions.

It also makes it easy to add more.
2020-01-23 19:13:31 -08:00
vvbogdanov87 b654bc923f Fix scheduler policy configmap args 2020-01-21 11:59:22 +08:00
Xiaoyu Zhong afc54224aa Fix net.bridge setting for Flannel on CentOS 7 2020-01-20 16:55:42 +08:00
Justin SB 1d58f16d29
Fix & test docker package versions as well as hashes
Extend the existing "unit" test to check package versions, because
some of the docker packages now have a '5:' prefix.

Also correct the package versions that didn't have the prefix.
2020-01-17 09:30:02 -05:00
Kubernetes Prow Robot c82c62edab
Merge pull request #8354 from justinsb/cos_make_opt_cni_writeable
Make /opt/cni/bin writeable on COS
2020-01-16 21:14:55 -08:00
Justin SB 3deecb2435
Make /opt/cni/bin writeable on COS
Using the same approach we're doing for /opt/kops
2020-01-16 12:36:22 -05:00
Ciprian Hacman 162761cd64 Fix DNS loop on Ubuntu 18.04 (Bionic) 2020-01-16 18:25:19 +02:00
Kubernetes Prow Robot 77d6d381c3
Merge pull request #8327 from johngmyers/remove-code
Remove code for unsupported Kubernetes versions
2020-01-15 14:54:22 -08:00
simonmacklin 2b04d7d111
Update nodeup/pkg/model/ntp.go
updated to non group capturing

Co-Authored-By: John Gardiner Myers <jgmyers@proofpoint.com>
2020-01-15 10:37:39 +00:00
Simon Macklin 29223a3cf1 adjusted regex 2020-01-14 23:02:36 +00:00
Simon Macklin 402359d57f updated case to use the const 2020-01-13 10:32:21 +00:00
Simon Macklin 2f0c33fd4e first initial commit
added replace method

added cloud ips

updated the func params

removed whitespace at gce address

removed sample ntp.conf

removed whitespace from gce ntp address

created const var ntp type

added a period at the end of the func comment and used the const vars on the case statement.  Will finish sometime this weekend

unexported func and const type

trying to fix git email config issue

changed func param
2020-01-13 10:05:21 +00:00
John Gardiner Myers 6e9dc8fc0f Remove code for unsupported k8s versions from nodeup 2020-01-12 19:30:34 -08:00
Ciprian Hacman 2a6aeaff7c Add support for containerd tar.gz package 2020-01-12 06:53:39 +02:00
Justin SB a0c16c9abe Use /opt/cni/bin on all distros
We used to remap the cni-bin to /home/kubernetes/bin on COS, but that
then requires us to change the CNI manifests also to write to the new
location.

Instead we can use /opt/cni/bin on all distros, now that we are making
it writeable everywhere with a bind mount.
2020-01-11 13:03:12 -05:00
Kubernetes Prow Robot 1e4b284bcb
Merge pull request #8056 from justinsb/move_to_utils_mount
Replace kubernetes mount code with utils
2020-01-10 15:35:37 -08:00
Ciprian Hacman 3ea7a6aed6 Remove "pigz" containerd dependency for RHEL/CentOS 7 2020-01-10 18:05:11 +02:00
Kubernetes Prow Robot 7a65c25a88
Merge pull request #8286 from hakman/rhel-e2e-deps
Add wget and nfs-utils deps needed for e2e tests
2020-01-10 07:54:36 -08:00
Ciprian Hacman a508c36302 Add wget and nfs-utils deps needed for e2e tests 2020-01-08 09:06:12 +02:00
Peter Rifel e0fa147b15 Enable host logging for kops-controller
This makes it easier to get the kops-controller logs from e2e tests since it they only dump log files from systemd services and /var/log files [0]

[0] ec0fe6bd36/kubetest/dump.go (L50-L74)
2020-01-07 11:00:41 -06:00
Kubernetes Prow Robot 63930904c3
Merge pull request #8269 from justinsb/ops_kops_writeable
Make /opt/kops writeable on COS
2020-01-06 01:33:34 -08:00
Kubernetes Prow Robot 95f4f83fbe
Merge pull request #7900 from zacblazic/use-encryption-provider-config-flag
Use non-experimental version of encryption provider config flag in 1.13+
2020-01-05 10:31:40 -08:00
Kubernetes Prow Robot e4da659509
Merge pull request #8196 from justinsb/dont_preload_unused_images
For dev, don't preload docker images on nodes
2020-01-04 16:15:40 -08:00
Justin SB fdc1499bed Make /opt/kops writeable on COS
This approach means that rather than trying to have different
directories on different OSes, we can instead make them look more
similar.
2020-01-04 17:59:05 -05:00
Kubernetes Prow Robot 78267482bf
Merge pull request #8212 from hakman/move-nodeup
Move nodeup to /opt/kops/bin
2020-01-04 14:49:40 -08:00
Justin Santa Barbara e4ed13ed57 Move protokube image task to ProtokubeBuilder
More logically consistent, and allows us to be lazier about loading
it when not needed.
2020-01-04 17:46:16 -05:00
Justin Santa Barbara fc21f4255f Replace kubernetes mount code with utils
This will remove one of the main dependencies on the
kubernetes/kubernetes repo.
2020-01-04 17:34:31 -05:00
Kubernetes Prow Robot afb4ecb883
Merge pull request #7730 from ripta/custom-sysctls
Custom sysctl Parameters
2020-01-03 07:35:41 -08:00
Kubernetes Prow Robot 5955227c27
Merge pull request #8217 from hakman/containerd-nits
containerd: Fix tiny nits
2020-01-03 06:43:49 -08:00
tanjunchen 7e25f9831d nodeup/pkg/ pkg/ staticcheck 2019-12-31 15:03:39 +08:00
Ciprian Hacman b563e4e815 Run Protokube in the "default" container namespace 2019-12-29 05:42:29 +02:00
Ciprian Hacman d35977ac90 Update hardcoded dependencies on on docker.service 2019-12-29 04:43:40 +02:00
Ciprian Hacman 3068b7e0ac Run each hash check as a separate test 2019-12-29 04:43:40 +02:00
Ciprian Hacman dd5b24eece Move iptables-setup to /opt/kops/bin 2019-12-28 20:22:33 +02:00
Kubernetes Prow Robot f6681d8df5
Merge pull request #7832 from justinsb/cilium_dont_double_mount_bpf
cilium: don't try to mount sys/fs/bpf if already mounted
2019-12-28 09:57:38 -08:00
Justin SB 4d514856f9 cilium: don't try to mount sys/fs/bpf if already mounted
systemd v238 already includes the mount, and the unit file fails.  We
test for the existence of the mount, rather than testing systemd
versions directly.
2019-12-28 12:01:54 -05:00
Peter Rifel dbb74e76c4 Fix typo in KubeProxy model
very minor, but meant to ensure that KubeProxyBuilder satisfies the ModelBuilder interface
2019-12-27 19:38:32 -08:00
Kubernetes Prow Robot adf659370c
Merge pull request #8170 from hakman/coninerd-add-1.2.4
containerd: Use containerd 1.2.4 with Docker 18.09.3
2019-12-27 09:29:38 -08:00
Kubernetes Prow Robot ac76e81ecd
Merge pull request #8164 from hakman/update-rhel-8
Update support for RHEL 8
2019-12-27 07:45:38 -08:00
Ciprian Hacman e90474d593 Update support for RHEL 8 2019-12-24 17:07:23 +02:00
Ciprian Hacman 760c7b06b4 Use containerd 1.2.4 with Docker 18.09.3 2019-12-23 19:26:38 +02:00
Kubernetes Prow Robot 4621df3c0a
Merge pull request #8155 from hakman/staticcheck-nodeup
nodeup/pkg/model - fix static check
2019-12-20 00:15:32 -08:00
Ciprian Hacman 97f70ff7a5 Add Docker 19.03.4 and 18.09.9 for Ubuntu Xenial 2019-12-19 16:14:09 +02:00
Justin Santa Barbara 2c770aa7a5
Merge branch 'master' into split-containerd 2019-12-19 07:03:33 -05:00
Kubernetes Prow Robot 1a0e441914
Merge pull request #8020 from hakman/install-with-updates
Automatically install dependencies with local packages
2019-12-19 01:53:56 -08:00
Ciprian Hacman fa665943ac nodeup/pkg/model - fix static check 2019-12-18 22:07:31 +02:00
Ciprian Hacman d0f15a8e27 Add "pigz" dependency in a future commit 2019-12-17 09:47:47 +02:00
Ciprian Hacman ce9ed2e1fb Make sure Cluster.Spec.Containerd exists before checking the address 2019-12-16 15:26:52 +02:00
Ciprian Hacman c2d55ecdf3 Always require containerd version in nodeup 2019-12-16 15:17:57 +02:00
Ciprian Hacman f1ffd9a7f6 Rename config option contained.configFile to containerd.configOverride 2019-12-16 00:59:26 +02:00
Ciprian Hacman 59ab0ca9d0 Pass containerd --address flag to kubelet if it exists 2019-12-16 00:59:26 +02:00
Ciprian Hacman 6363289103 Update tests after rebase 2019-12-16 00:59:26 +02:00
Ciprian Hacman b234d0687a Add back Protokube image pull during service start 2019-12-16 00:59:19 +02:00
Ciprian Hacman f401342d8f Update Protokube tests 2019-12-15 22:31:52 +02:00
Ciprian Hacman 4c5693be0d Remove unneeded version check 2019-12-15 21:57:12 +02:00
Ciprian Hacman 6dce39ffe1 Always set TasksMax=infinity for container friendly OSes 2019-12-15 21:37:57 +02:00
Ciprian Hacman 9d1ef68616 Parse Docker and containerd version using strconv.Atoi 2019-12-15 21:37:57 +02:00
Ciprian Hacman a6696f8060 Remove duplicate ExecStartPre 2019-12-15 21:37:57 +02:00
Ciprian Hacman bbb6740f3f Remove unneeded imports 2019-12-15 21:37:57 +02:00
Ciprian Hacman bdb395f722 Fix container remove command on failed start 2019-12-15 21:37:57 +02:00
Ciprian Hacman 92cd1842c6 Add support for containerd container runtime - generated 2019-12-15 21:37:57 +02:00
Ciprian Hacman 1a4d8bf49c Add support for containerd container runtime - tests 2019-12-15 21:37:57 +02:00
Ciprian Hacman 42b73b877d Add support for containerd container runtime 2019-12-15 21:37:57 +02:00
Peter Rifel 23ee2e63fc
Fix typo in protokube_test.go 2019-12-15 11:18:46 -06:00
Peter Rifel ea106478e0
Run ./hack/update-bazel.sh 2019-12-15 09:47:57 -06:00
Justin Santa Barbara 700bd2c0a5 Add test for protokube builder
This should give us some assurances that we haven't changed things too
much with the containerd introduction.
2019-12-14 23:19:54 -05:00
Kubernetes Prow Robot 852ed31f5f
Merge pull request #7545 from mazzy89/flatcar-fix
Complete support for Flatcar
2019-12-09 04:58:01 -08:00
John Gardiner Myers eaa13e734d Fix truncation of admission control plugins list 2019-11-30 19:30:49 -08:00