revert for supporting k8s version <= 1.26

pull/1292/head
gjmzj 2023-06-23 00:10:53 +08:00
parent f7f581be40
commit 104cba1875
2 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,6 @@ clusterDomain: {{ CLUSTER_DNS_DOMAIN }}
configMapAndSecretChangeDetectionStrategy: Watch
containerLogMaxFiles: 3
containerLogMaxSize: 10Mi
containerRuntimeEndpoint: "unix:///run/containerd/containerd.sock"
enforceNodeAllocatable:
- pods
{% if KUBE_RESERVED_ENABLED == "yes" %}

View File

@ -25,6 +25,7 @@ ExecStartPre=/bin/mkdir -p /sys/fs/cgroup/hugetlb/system.slice
{% endif %}
ExecStart={{ bin_dir }}/kubelet \
--config=/var/lib/kubelet/config.yaml \
--container-runtime-endpoint=unix:///run/containerd/containerd.sock \
--hostname-override={{ K8S_NODENAME }} \
--kubeconfig=/etc/kubernetes/kubelet.kubeconfig \
--root-dir={{ KUBELET_ROOT_DIR }} \