[CPDEV-106078] - Control plane kubelet local mode kuber 1.31 #696
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Kubernetes version 1.31 provides kubelet local mode feature, that is needed for kubelet to do requests to local api-server ip instead of vrrp. ip. It helps to resolve the floating issue with kubernetes upgrade to 1.30 version. It's enabled in kubeadm config using
featureGates.ControlPlaneKubeletLocalMode=true
inClusterConfiguration
.Fixes # (issue)
Solution
featureGates.ControlPlaneKubeletLocalMode=true
for install procedure with kubernetes version v1.31+. This feature can be turned off by user in cluster.yaml configuration;featureGates.ControlPlaneKubeletLocalMode=true
for upgrade procedure to kubernetes version v1.31+ before the upgrade.featureGates
section to claster.yaml lson schema;featureGates
enrichment;featureGates.ControlPlaneKubeletLocalMode
;Test Cases
TestCase 1
Test Configuration:
Steps:
kubemarine install
procedure;kubeadm-config
in cluster;/etc/kubernetes/kubelet.conf
;Results:
featureGates
field in kubeadm-configfeatureGates.ControlPlaneKubeletLocalMode=true
in kubeadm-configserver
in kubelet configTestCase 2
Test Configuration:
Steps:
kubemarine install
procedure;kubeadm-config
in cluster;/etc/kubernetes/kubelet.conf
;Results:
CreateContainerConfigError
statusfeatureGates
field in kubeadm-configfeatureGates.ControlPlaneKubeletLocalMode=true
in kubeadm-configserver
in kubelet configChecklist
Unit tests
Indicate new or changed unit tests and what they do, if any.