From f705c6b2037c885870345484e5e3014ecaa4f549 Mon Sep 17 00:00:00 2001 From: Jim Gauld Date: Tue, 1 Nov 2022 10:19:42 -0400 Subject: [PATCH] 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 Change-Id: Icc4f0214d492ace731ff9fdc952cca04ce515e3a --- .../debian/deb_folder/kubelet_override.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kubernetes/kubernetes-unversioned/debian/deb_folder/kubelet_override.yaml b/kubernetes/kubernetes-unversioned/debian/deb_folder/kubelet_override.yaml index b9fd0fe04..e3152d23f 100644 --- a/kubernetes/kubernetes-unversioned/debian/deb_folder/kubelet_override.yaml +++ b/kubernetes/kubernetes-unversioned/debian/deb_folder/kubelet_override.yaml @@ -1,2 +1,4 @@ --- +kind: KubeletConfiguration +apiVersion: kubelet.config.k8s.io/v1beta1 # no customizations