Skip to content

Commit 8a0520f

Browse files
daleesmnasiadka
authored andcommitted
Support k8s 1.27: Remove unsupported kubelet arg
This argument has been defined for containerd clusters in Magnum, and is set to the default (and only valid) value of 'remote'. Kubelet warning in 1.26: * Flag --container-runtime has been deprecated, will be removed in 1.27 as the only valid value is 'remote' Kubelet error in 1.27: * E0801 03:10:26.723998 8889 run.go:74] "command failed" err="failed to parse kubelet flag: unknown flag: --container-runtime" Change-Id: I072fab1342593941414b86e28b8a76edf2b19a6f
1 parent 0d194b2 commit 8a0520f

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

magnum/drivers/common/templates/kubernetes/fragments/configure-kubernetes-master.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,6 @@ KUBELET_ARGS="${KUBELET_ARGS} --client-ca-file=${CERT_DIR}/ca.crt --tls-cert-fil
500500
KUBELET_ARGS="${KUBELET_ARGS} --cgroup-driver=${CGROUP_DRIVER}"
501501
if [ ${CONTAINER_RUNTIME} = "containerd" ] ; then
502502
KUBELET_ARGS="${KUBELET_ARGS} --runtime-cgroups=/system.slice/containerd.service"
503-
KUBELET_ARGS="${KUBELET_ARGS} --container-runtime=remote"
504503
KUBELET_ARGS="${KUBELET_ARGS} --runtime-request-timeout=15m"
505504
KUBELET_ARGS="${KUBELET_ARGS} --container-runtime-endpoint=unix:///run/containerd/containerd.sock"
506505
fi

magnum/drivers/common/templates/kubernetes/fragments/configure-kubernetes-minion.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,6 @@ KUBELET_ARGS="${KUBELET_ARGS} --client-ca-file=${CERT_DIR}/ca.crt --tls-cert-fil
276276
KUBELET_ARGS="${KUBELET_ARGS} --cgroup-driver=${CGROUP_DRIVER}"
277277
if [ ${CONTAINER_RUNTIME} = "containerd" ] ; then
278278
KUBELET_ARGS="${KUBELET_ARGS} --runtime-cgroups=/system.slice/containerd.service"
279-
KUBELET_ARGS="${KUBELET_ARGS} --container-runtime=remote"
280279
KUBELET_ARGS="${KUBELET_ARGS} --runtime-request-timeout=15m"
281280
KUBELET_ARGS="${KUBELET_ARGS} --container-runtime-endpoint=unix:///run/containerd/containerd.sock"
282281
fi

0 commit comments

Comments
 (0)