-
Notifications
You must be signed in to change notification settings - Fork 49
Fix self-hosted kubelet on bare metal platform #436
Fix self-hosted kubelet on bare metal platform #436
Commits on May 29, 2020
-
test/components/kubernetes: enable kubelet tests on bare metal
To be able to test fix for #376 in the CI and to make sure we don't make a regression there. Signed-off-by: Mateusz Gozdek <mateusz@kinvolk.io>
Configuration menu - View commit details
-
Copy full SHA for 924bc84 - Browse repository at this point
Copy the full SHA 924bc84View commit details -
Makefile: build and lint baremetal tests
Now we have some baremetal e2e tests, so they should be built and linted as part of the CI process. Signed-off-by: Mateusz Gozdek <mateusz@kinvolk.io>
Configuration menu - View commit details
-
Copy full SHA for 8325901 - Browse repository at this point
Copy the full SHA 8325901View commit details -
baremetal: remove unneeded whitespace from worker Ignition template
Signed-off-by: Mateusz Gozdek <mateusz@kinvolk.io>
Configuration menu - View commit details
-
Copy full SHA for b8babdb - Browse repository at this point
Copy the full SHA b8babdbView commit details -
baremetal: enable generating kubelet config file on nodes
This commit adds 'configure-kubelet-cgroup-driver' script to bare-metal nodes, which is then executed before kubelet systemd unit starts to generate kubelet configuration file with automatically detected cgroup driver to be used by kublelet. This allows to use FCL Edge channel on bare metal nodes, as Edge channel has different default cgroup driver than kubelet. Generating mentioned configuration file also fixes crashing self-hosted kubelet on bare metal platform, as it expects the file to be present on host filesystem. This feature is already implemented in the same way on other platforms. Closes #376. Signed-off-by: Mateusz Gozdek <mateusz@kinvolk.io>
Configuration menu - View commit details
-
Copy full SHA for 7b746e8 - Browse repository at this point
Copy the full SHA 7b746e8View commit details -
baremetal: add ability to add extra labels to the worker nodes
This is required for self-hosted kubelet tests to pass as well. Part of #376. Signed-off-by: Mateusz Gozdek <mateusz@kinvolk.io>
Configuration menu - View commit details
-
Copy full SHA for c383130 - Browse repository at this point
Copy the full SHA c383130View commit details -
ci/baremetal: add worker node labels required by kubelet tests
Part of #376. Signed-off-by: Mateusz Gozdek <mateusz@kinvolk.io>
Configuration menu - View commit details
-
Copy full SHA for 19de4a9 - Browse repository at this point
Copy the full SHA 19de4a9View commit details -
test/components/kubernetes: disable kubelet disruptive label test
This commit disables self-hosted kubelet tests for picking up correct node labels, as it is flaky because of runc bug in current release of Flatcar stable, which makes kubelet pod to never terminate when the pod is scheduled for removal. Once the fix of runc reaches Flatcar stable, this test should be re-enabled. See also #110 Signed-off-by: Mateusz Gozdek <mateusz@kinvolk.io>
Configuration menu - View commit details
-
Copy full SHA for f94216f - Browse repository at this point
Copy the full SHA f94216fView commit details -
pkg/platform/baremetal: add test for createTerraformConfigFile
So the template syntax is checked by unit tests. Signed-off-by: Mateusz Gozdek <mateusz@kinvolk.io>
Configuration menu - View commit details
-
Copy full SHA for be50c26 - Browse repository at this point
Copy the full SHA be50c26View commit details -
baremetal: use templatefile instead of template_file data source
This commit changes the template method we use in baremetal Terraform code responsible for generating workers Ignition configs from template_file data source coming from 3rd party Terraform provider to built-in 'templatefile' function, which is available from Terraform 0.12, as it provides the exact same functionality, but do not require downloading 3rd party provider. Also 'template' provider recommends using this function: https://www.terraform.io/docs/providers/template/d/file.html. This also allows passing parameters to the template in complex types (like lists) and call functions like 'join' inside the template, which better separates data from how they are rendered. Part of #196 Signed-off-by: Mateusz Gozdek <mateusz@kinvolk.io>
Configuration menu - View commit details
-
Copy full SHA for feb6a35 - Browse repository at this point
Copy the full SHA feb6a35View commit details -
bare-metal: print logs for bootkube if it fails
Part of #440. Signed-off-by: Mateusz Gozdek <mateusz@kinvolk.io>
Configuration menu - View commit details
-
Copy full SHA for e852117 - Browse repository at this point
Copy the full SHA e852117View commit details -
test/components/kubernetes: add tests that nodes has configured labels
Now that we don't run disruptive test for self-hosted kubelet, we should have a test, that the labels configured by the user for the worker pool are actually applied on the node objects. Signed-off-by: Mateusz Gozdek <mateusz@kinvolk.io>
Configuration menu - View commit details
-
Copy full SHA for 6a2c4a8 - Browse repository at this point
Copy the full SHA 6a2c4a8View commit details