[CPDEV-98822] Remove default resolvConf from kubelet-config ConfigMap #619
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
Default value of resolvConf is uploaded to kubelet-config ConfigMap by kubeadm.
This causes problems in migration of operating systems, because resolvConf is taken from the ConfigMap,
while it should be different on different OS.
Fixes #586
Solution
If resolvConf is not redefined in the inventory, remove it from kubelet-config ConfigMap
kubeadm init
of the first control plane.kubemarine reconfigure
services.kubelet.configuration
PaaS check when generating the CM for comparison.How to apply
Run
kubemarine migrate_kubemarine --force-apply kubelet_resolvConf
Test Cases
TestCase 1
Migrate from Ubuntu 22.04 to RHEL9.
Steps:
Results:
TestCase 2
Migrate from Centos 7 to Ubuntu 22.04
Steps:
check_paas --tasks services.kubelet.configuration
Results:
TestCase 3
Migration of old clusters.
Steps:
Next steps should be done using new version of Kubemarine.
check_paas --tasks services.kubelet.configuration
ER: failed: "kubelet-config ConfigMap is not consistent with services.kubeadm_kubelet section"
kubemarine migrate_kubemarine --force-apply kubelet_resolvConf
check_paas --tasks services.kubelet.configuration
ER: check is successful.
Checklist