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
This commit is contained in:
parent
537e69aeb8
commit
dc2b3724f5
|
@ -499,7 +499,6 @@ KUBELET_ARGS="${KUBELET_ARGS} --client-ca-file=${CERT_DIR}/ca.crt --tls-cert-fil
|
|||
KUBELET_ARGS="${KUBELET_ARGS} --cgroup-driver=${CGROUP_DRIVER}"
|
||||
if [ ${CONTAINER_RUNTIME} = "containerd" ] ; then
|
||||
KUBELET_ARGS="${KUBELET_ARGS} --runtime-cgroups=/system.slice/containerd.service"
|
||||
KUBELET_ARGS="${KUBELET_ARGS} --container-runtime=remote"
|
||||
KUBELET_ARGS="${KUBELET_ARGS} --runtime-request-timeout=15m"
|
||||
KUBELET_ARGS="${KUBELET_ARGS} --container-runtime-endpoint=unix:///run/containerd/containerd.sock"
|
||||
else
|
||||
|
|
|
@ -279,7 +279,6 @@ KUBELET_ARGS="${KUBELET_ARGS} --client-ca-file=${CERT_DIR}/ca.crt --tls-cert-fil
|
|||
KUBELET_ARGS="${KUBELET_ARGS} --cgroup-driver=${CGROUP_DRIVER}"
|
||||
if [ ${CONTAINER_RUNTIME} = "containerd" ] ; then
|
||||
KUBELET_ARGS="${KUBELET_ARGS} --runtime-cgroups=/system.slice/containerd.service"
|
||||
KUBELET_ARGS="${KUBELET_ARGS} --container-runtime=remote"
|
||||
KUBELET_ARGS="${KUBELET_ARGS} --runtime-request-timeout=15m"
|
||||
KUBELET_ARGS="${KUBELET_ARGS} --container-runtime-endpoint=unix:///run/containerd/containerd.sock"
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue