Add apiVersion to empty kubelet_override.yaml

Kubernetes upgrade control-plane step was failing due to kubeadm not
accepting the format of the empty kubelet_override.yaml file. This file
minimally requires the apiVersion to be specified even if there are no
actual overrides.

This adds apiVersion to the kubelet_override.yaml file.

Test Plan:
PASS: Kubernetes 1.23.1 to 1.24.4 upgrade
PASS: Manually call kubeadm upgrade apply v1.24.4 same as:
      system kube-host-upgrade controller-0 control-plane

Story: 2010301
Task: 46699

Signed-off-by: Jim Gauld <james.gauld@windriver.com>
Change-Id: Icc4f0214d492ace731ff9fdc952cca04ce515e3a
This commit is contained in:
Jim Gauld 2022-11-01 10:19:42 -04:00
parent 188a92fe0e
commit f705c6b203

View File

@ -1,2 +1,4 @@
---
kind: KubeletConfiguration
apiVersion: kubelet.config.k8s.io/v1beta1
# no customizations