Kubelet service not starting in mmumshad's hardway

Can anyone please help?

I am trying mmumshad’s kubernetes the hardway - https://github.com/mmumshad/kubernetes-the-hard-way/blob/master/docs/09-bootstrapping-kubernetes-workers.md

While starting the kubelet service, it fails.

The output of systemctl status kubelet is following:

Sometimes it shows active, but most of the time failed.

The journalctl -u kubelet.service -r command output:
[root@worker-1 ~]# journalctl -u kubelet.service –r
– Logs begin at Sat 2021-05-22 07:23:39 +06, end at Sat 2021-05-22 09:15:18 +06. –
May 22 09:15:17 worker-1 systemd[1]: kubelet.service failed.
May 22 09:15:17 worker-1 systemd[1]: Unit kubelet.service entered failed state.
May 22 09:15:17 worker-1 systemd[1]: kubelet.service: main process exited, code=exited, status=255/n/a
May 22 09:15:17 worker-1 kubelet[36777]: F0522 09:15:17.346711 36777 server.go:261] failed to run Kubelet: Running with swap on is not supported
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.345149 36777 server.go:666] --cgroups-per-qos enabled, but --cgroup-root was not specifi
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.344939 36777 manager.go:235] Version: {KernelVersion:3.10.0-1160.24.1.el7.x86_64 Contain
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.341434 36777 manager.go:229] Machine: {NumCores:2 CpuFrequency:2996527 MemoryCapacity:39
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.335467 36777 fs.go:143] Filesystem partitions: map[/dev/mapper/rhel-root:{mountpoint:/va
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.335382 36777 fs.go:142] Filesystem UUIDs: map[747638bb-7f14-471a-9791-702782d239ee:/dev/
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.263052 36777 manager.go:155] cAdvisor running in container: “/sys/fs/cgroup/cpu,cpuacct”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.256196 36777 server.go:523] No cloud provider specified: “” from the config file: “”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.256168 36777 plugins.go:103] No cloud provider specified.
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.256045 36777 feature_gate.go:206] feature gates: &{map[]}
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.255934 36777 feature_gate.go:206] feature gates: &{map[]}
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.255867 36777 server.go:407] Version: v1.13.0
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.255809 36777 mount_linux.go:179] Detected OS with systemd
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.243683 36777 feature_gate.go:206] feature gates: &{map[]}
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.243578 36777 feature_gate.go:206] feature gates: &{map[]}
May 22 09:15:17 worker-1 kubelet[36777]: Flag --tls-private-key-file has been deprecated, This parameter should be set via the config file specifi
May 22 09:15:17 worker-1 kubelet[36777]: Flag --tls-cert-file has been deprecated, This parameter should be set via the config file specified by t
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.240092 36777 feature_gate.go:206] feature gates: &{map[]}
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.240026 36777 flags.go:33] FLAG: --volume-stats-agg-period=“1m0s”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.240012 36777 flags.go:33] FLAG: --volume-plugin-dir="/usr/libexec/kubernetes/kubelet-plu
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.240000 36777 flags.go:33] FLAG: --vmodule=""
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.239978 36777 flags.go:33] FLAG: --version=“false”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.239967 36777 flags.go:33] FLAG: --v=“2”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.239955 36777 flags.go:33] FLAG: --tls-private-key-file="/var/lib/kubelet/worker-1.key"
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.239944 36777 flags.go:33] FLAG: --tls-min-version=""
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.239931 36777 flags.go:33] FLAG: --tls-cipher-suites="[]"
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.239918 36777 flags.go:33] FLAG: --tls-cert-file="/var/lib/kubelet/worker-1.crt"
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.239908 36777 flags.go:33] FLAG: --system-reserved-cgroup=""
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.239896 36777 flags.go:33] FLAG: --system-reserved=""
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.239886 36777 flags.go:33] FLAG: --system-cgroups=""
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.239874 36777 flags.go:33] FLAG: --sync-frequency=“1m0s”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.239862 36777 flags.go:33] FLAG: --streaming-connection-idle-timeout=“4h0m0s”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.239851 36777 flags.go:33] FLAG: --storage-driver-user=“root”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.239834 36777 flags.go:33] FLAG: --storage-driver-table=“stats”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.239586 36777 flags.go:33] FLAG: --storage-driver-secure=“false”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.239575 36777 flags.go:33] FLAG: --storage-driver-password=“root”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.239563 36777 flags.go:33] FLAG: --storage-driver-host=“localhost:8086”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.239551 36777 flags.go:33] FLAG: --storage-driver-db=“cadvisor”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.239512 36777 flags.go:33] FLAG: --storage-driver-buffer-duration=“1m0s”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.239501 36777 flags.go:33] FLAG: --stderrthreshold=“2”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.239488 36777 flags.go:33] FLAG: --serialize-image-pulls=“true”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.239476 36777 flags.go:33] FLAG: --seccomp-profile-root="/var/lib/kubelet/seccomp"
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.239465 36777 flags.go:33] FLAG: --runtime-request-timeout=“2m0s”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.239453 36777 flags.go:33] FLAG: --runtime-cgroups=""
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.239435 36777 flags.go:33] FLAG: --runonce=“false”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.239148 36777 flags.go:33] FLAG: --rotate-server-certificates=“false”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.239137 36777 flags.go:33] FLAG: --rotate-certificates=“false”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.239125 36777 flags.go:33] FLAG: --root-dir="/var/lib/kubelet"
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.239113 36777 flags.go:33] FLAG: --resolv-conf="/etc/resolv.conf"
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.239102 36777 flags.go:33] FLAG: --registry-qps=“5”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.239091 36777 flags.go:33] FLAG: --registry-burst=“10”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.239071 36777 flags.go:33] FLAG: --register-with-taints=""
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.239061 36777 flags.go:33] FLAG: --register-schedulable=“true”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.239050 36777 flags.go:33] FLAG: --register-node=“true”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.239039 36777 flags.go:33] FLAG: --redirect-container-streaming=“false”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.239028 36777 flags.go:33] FLAG: --really-crash-for-testing=“false”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.239017 36777 flags.go:33] FLAG: --read-only-port=“10255”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.239005 36777 flags.go:33] FLAG: --qos-reserved=""
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238995 36777 flags.go:33] FLAG: --provider-id=""
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238984 36777 flags.go:33] FLAG: --protect-kernel-defaults=“false”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238972 36777 flags.go:33] FLAG: --port=“10250”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238962 36777 flags.go:33] FLAG: --pods-per-core=“0”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238950 36777 flags.go:33] FLAG: --pod-max-pids="-1"
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238939 36777 flags.go:33] FLAG: --pod-manifest-path=""
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238926 36777 flags.go:33] FLAG: --pod-infra-container-image=“k8s.gcr.io/pause:3.1
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238916 36777 flags.go:33] FLAG: --pod-cidr=""
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238905 36777 flags.go:33] FLAG: --oom-score-adj="-999"
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238894 36777 flags.go:33] FLAG: --non-masquerade-cidr=“10.0.0.0/8”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238882 36777 flags.go:33] FLAG: --node-status-update-frequency=“10s”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238871 36777 flags.go:33] FLAG: --node-status-max-images=“50”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238856 36777 flags.go:33] FLAG: --node-labels=""
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238846 36777 flags.go:33] FLAG: --node-ip=""
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238835 36777 flags.go:33] FLAG: --network-plugin-mtu=“0”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238824 36777 flags.go:33] FLAG: --network-plugin=“cni”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238813 36777 flags.go:33] FLAG: --minimum-image-ttl-duration=“2m0s”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238802 36777 flags.go:33] FLAG: --minimum-container-ttl-duration=“0s”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238791 36777 flags.go:33] FLAG: --maximum-dead-containers-per-container=“1”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238780 36777 flags.go:33] FLAG: --maximum-dead-containers="-1"
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238769 36777 flags.go:33] FLAG: --max-pods=“110”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238755 36777 flags.go:33] FLAG: --max-open-files=“1000000”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238743 36777 flags.go:33] FLAG: --master-service-namespace=“default”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238727 36777 flags.go:33] FLAG: --manifest-url-header=""
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238717 36777 flags.go:33] FLAG: --manifest-url=""
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238706 36777 flags.go:33] FLAG: --make-iptables-util-chains=“true”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238692 36777 flags.go:33] FLAG: --machine-id-file="/etc/machine-id,/var/lib/dbus/machine
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238681 36777 flags.go:33] FLAG: --logtostderr=“true”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238670 36777 flags.go:33] FLAG: --log-flush-frequency=“5s”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238659 36777 flags.go:33] FLAG: --log-file=""
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238648 36777 flags.go:33] FLAG: --log-dir=""
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238637 36777 flags.go:33] FLAG: --log-cadvisor-usage=“false”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238623 36777 flags.go:33] FLAG: --log-backtrace-at=":0"
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238613 36777 flags.go:33] FLAG: --lock-file=""
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238602 36777 flags.go:33] FLAG: --kubelet-cgroups=""
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238589 36777 flags.go:33] FLAG: --kubeconfig="/var/lib/kubelet/kubeconfig"
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238579 36777 flags.go:33] FLAG: --kube-reserved-cgroup=""
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238568 36777 flags.go:33] FLAG: --kube-reserved=""
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238557 36777 flags.go:33] FLAG: --kube-api-qps=“5”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238544 36777 flags.go:33] FLAG: --kube-api-content-type=“application/vnd.kubernetes.prot
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238533 36777 flags.go:33] FLAG: --kube-api-burst=“10”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238522 36777 flags.go:33] FLAG: --keep-terminated-pod-volumes=“false”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238511 36777 flags.go:33] FLAG: --iptables-masquerade-bit=“14”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238500 36777 flags.go:33] FLAG: --iptables-drop-bit=“15”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238490 36777 flags.go:33] FLAG: --image-service-endpoint=”"
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238479 36777 flags.go:33] FLAG: --image-pull-progress-deadline=“2m0s”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238468 36777 flags.go:33] FLAG: --image-gc-low-threshold=“80”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238457 36777 flags.go:33] FLAG: --image-gc-high-threshold=“85”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238446 36777 flags.go:33] FLAG: --http-check-frequency=“20s”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238434 36777 flags.go:33] FLAG: --housekeeping-interval=“10s”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238424 36777 flags.go:33] FLAG: --hostname-override=""
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238408 36777 flags.go:33] FLAG: --host-pid-sources="[]"
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238395 36777 flags.go:33] FLAG: --host-network-sources="[
]"
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238378 36777 flags.go:33] FLAG: --host-ipc-sources="[*]"
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238367 36777 flags.go:33] FLAG: --help=“false”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238355 36777 flags.go:33] FLAG: --healthz-port=“10248”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238343 36777 flags.go:33] FLAG: --healthz-bind-address=“127.0.0.1”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238330 36777 flags.go:33] FLAG: --hairpin-mode=“promiscuous-bridge”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238318 36777 flags.go:33] FLAG: --global-housekeeping-interval=“1m0s”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238307 36777 flags.go:33] FLAG: --file-check-frequency=“20s”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238292 36777 flags.go:33] FLAG: --feature-gates=""
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238281 36777 flags.go:33] FLAG: --fail-swap-on=“true”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238271 36777 flags.go:33] FLAG: --experimental-mounter-path=""
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238260 36777 flags.go:33] FLAG: --experimental-kernel-memcg-notification=“false”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238249 36777 flags.go:33] FLAG: --experimental-fail-swap-on=“true”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238236 36777 flags.go:33] FLAG: --experimental-dockershim-root-directory="/var/lib/docke
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238225 36777 flags.go:33] FLAG: --experimental-dockershim=“false”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238214 36777 flags.go:33] FLAG: --experimental-check-node-capabilities-before-mount=“fal
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238203 36777 flags.go:33] FLAG: --experimental-bootstrap-kubeconfig=”"
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238192 36777 flags.go:33] FLAG: --experimental-allocatable-ignore-eviction=“false”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238181 36777 flags.go:33] FLAG: --exit-on-lock-contention=“false”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238165 36777 flags.go:33] FLAG: --eviction-soft-grace-period=""
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238119 36777 flags.go:33] FLAG: --eviction-soft=""
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238107 36777 flags.go:33] FLAG: --eviction-pressure-transition-period=“5m0s”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238093 36777 flags.go:33] FLAG: --eviction-minimum-reclaim=""
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238081 36777 flags.go:33] FLAG: --eviction-max-pod-grace-period=“0”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238050 36777 flags.go:33] FLAG: --eviction-hard=“imagefs.available<15%,memory.available<
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238039 36777 flags.go:33] FLAG: --event-storage-event-limit=“default=0”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238028 36777 flags.go:33] FLAG: --event-storage-age-limit=“default=0”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238017 36777 flags.go:33] FLAG: --event-qps=“5”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.238006 36777 flags.go:33] FLAG: --event-burst=“10”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237992 36777 flags.go:33] FLAG: --enforce-node-allocatable=”[pods]"
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237981 36777 flags.go:33] FLAG: --enable-server=“true”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237970 36777 flags.go:33] FLAG: --enable-load-reader=“false”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237960 36777 flags.go:33] FLAG: --enable-debugging-handlers=“true”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237949 36777 flags.go:33] FLAG: --enable-controller-attach-detach=“true”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237934 36777 flags.go:33] FLAG: --dynamic-config-dir=""
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237922 36777 flags.go:33] FLAG: --docker-tls-key=“key.pem”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237910 36777 flags.go:33] FLAG: --docker-tls-cert=“cert.pem”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237899 36777 flags.go:33] FLAG: --docker-tls-ca=“ca.pem”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237888 36777 flags.go:33] FLAG: --docker-tls=“false”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237877 36777 flags.go:33] FLAG: --docker-root="/var/lib/docker"
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237865 36777 flags.go:33] FLAG: --docker-only=“false”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237855 36777 flags.go:33] FLAG: --docker-env-metadata-whitelist=""
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237842 36777 flags.go:33] FLAG: --docker-endpoint=“unix:///var/run/docker.sock”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237830 36777 flags.go:33] FLAG: --docker=“unix:///var/run/docker.sock”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237818 36777 flags.go:33] FLAG: --cpu-manager-reconcile-period=“10s”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237805 36777 flags.go:33] FLAG: --cpu-manager-policy=“none”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237793 36777 flags.go:33] FLAG: --cpu-cfs-quota-period=“100ms”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237782 36777 flags.go:33] FLAG: --cpu-cfs-quota=“true”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237771 36777 flags.go:33] FLAG: --contention-profiling=“false”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237760 36777 flags.go:33] FLAG: --containerized=“false”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237747 36777 flags.go:33] FLAG: --containerd=“unix:///var/run/containerd.sock”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237734 36777 flags.go:33] FLAG: --container-runtime-endpoint=“unix:///var/run/dockershim
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237723 36777 flags.go:33] FLAG: --container-runtime=“docker”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237711 36777 flags.go:33] FLAG: --container-log-max-size=“10Mi”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237681 36777 flags.go:33] FLAG: --container-log-max-files=“5”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237668 36777 flags.go:33] FLAG: --container-hints=”/etc/cadvisor/container_hints.json"
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237655 36777 flags.go:33] FLAG: --config="/var/lib/kubelet/kubelet-config.yaml"
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237643 36777 flags.go:33] FLAG: --cni-conf-dir="/etc/cni/net.d"
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237630 36777 flags.go:33] FLAG: --cni-bin-dir="/opt/cni/bin"
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237620 36777 flags.go:33] FLAG: --cluster-domain=""
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237602 36777 flags.go:33] FLAG: --cluster-dns="[]"
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237591 36777 flags.go:33] FLAG: --cloud-provider=""
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237581 36777 flags.go:33] FLAG: --cloud-config=""
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237570 36777 flags.go:33] FLAG: --client-ca-file=""
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237554 36777 flags.go:33] FLAG: --chaos-chance=“0”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237542 36777 flags.go:33] FLAG: --cgroups-per-qos=“true”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237532 36777 flags.go:33] FLAG: --cgroup-root=""
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237520 36777 flags.go:33] FLAG: --cgroup-driver=“cgroupfs”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237507 36777 flags.go:33] FLAG: --cert-dir="/var/lib/kubelet/pki"
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237497 36777 flags.go:33] FLAG: --bootstrap-kubeconfig=""
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237486 36777 flags.go:33] FLAG: --bootstrap-checkpoint-path=""
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237472 36777 flags.go:33] FLAG: --boot-id-file="/proc/sys/kernel/random/boot_id"
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237462 36777 flags.go:33] FLAG: --azure-container-registry-config=""
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237451 36777 flags.go:33] FLAG: --authorization-webhook-cache-unauthorized-ttl=“30s”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237439 36777 flags.go:33] FLAG: --authorization-webhook-cache-authorized-ttl=“5m0s”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237426 36777 flags.go:33] FLAG: --authorization-mode=“AlwaysAllow”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237411 36777 flags.go:33] FLAG: --authentication-token-webhook-cache-ttl=“2m0s”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237400 36777 flags.go:33] FLAG: --authentication-token-webhook=“false”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237389 36777 flags.go:33] FLAG: --application-metrics-count-limit=“100”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237377 36777 flags.go:33] FLAG: --anonymous-auth=“true”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237363 36777 flags.go:33] FLAG: --alsologtostderr=“false”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237347 36777 flags.go:33] FLAG: --allowed-unsafe-sysctls="[]"
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237332 36777 flags.go:33] FLAG: --allow-privileged=“true”
May 22 09:15:17 worker-1 kubelet[36777]: I0522 09:15:17.237252 36777 flags.go:33] FLAG: --address=“0.0.0.0”
May 22 09:15:17 worker-1 kubelet[36777]: Flag --tls-private-key-file has been deprecated, This parameter should be set via the config file specifi
May 22 09:15:17 worker-1 kubelet[36777]: Flag --tls-cert-file has been deprecated, This parameter should be set via the config file specified by t
May 22 09:15:17 worker-1 systemd[1]: Started Kubernetes Kubelet.
May 22 09:15:17 worker-1 systemd[1]: Stopped Kubernetes Kubelet.
May 22 09:15:17 worker-1 systemd[1]: kubelet.service holdoff time over, scheduling restart.
May 22 09:15:11 worker-1 systemd[1]: kubelet.service failed.
May 22 09:15:11 worker-1 kubelet[36754]: F0522 09:15:11.814403 36754 server.go:261] failed to run Kubelet: Running with swap on is not supported
May 22 09:15:11 worker-1 systemd[1]: Unit kubelet.service entered failed state.
May 22 09:15:11 worker-1 kubelet[36754]: I0522 09:15:11.813990 36754 server.go:666] --cgroups-per-qos enabled, but --cgroup-root was not specifi
May 22 09:15:11 worker-1 kubelet[36754]: I0522 09:15:11.813833 36754 manager.go:235] Version: {KernelVersion:3.10.0-1160.24.1.el7.x86_64 Contain
May 22 09:15:11 worker-1 kubelet[36754]: I0522 09:15:11.811149 36754 manager.go:229] Machine: {NumCores:2 CpuFrequency:2996527 MemoryCapacity:39
May 22 09:15:11 worker-1 systemd[1]: kubelet.service: main process exited, code=exited, status=255/n/a
May 22 09:15:11 worker-1 kubelet[36754]: I0522 09:15:11.806339 36754 fs.go:143] Filesystem partitions: map[tmpfs:{mountpoint:/dev/shm major:0 mi
May 22 09:15:11 worker-1 kubelet[36754]: I0522 09:15:11.806303 36754 fs.go:142] Filesystem UUIDs: map[af7413ae-3c79-49f8-bea3-cd764fd73ca3:/dev/
May 22 09:15:11 worker-1 kubelet[36754]: I0522 09:15:11.750638 36754 manager.go:155] cAdvisor running in container: “/sys/fs/cgroup/cpu,cpuacct”
May 22 09:15:11 worker-1 kubelet[36754]: I0522 09:15:11.742714 36754 server.go:523] No cloud provider specified: “” from the config file: “”
May 22 09:15:11 worker-1 kubelet[36754]: I0522 09:15:11.742686 36754 plugins.go:103] No cloud provider specified.

you should disable swap ```
sudo swapoff -a

disabled swap by #swapoff -a

[root@worker-1 ~]# free -h
total used free shared buff/cache available
Mem: 3.7G 352M 2.6G 192M 787M 2.9G
Swap: 0B 0B 0B

But still the service failed. . Please help

[root@worker-1 ~]# systemctl start kubelet
[root@worker-1 ~]# systemctl status kubelet
● kubelet.service - Kubernetes Kubelet
Loaded: loaded (/etc/systemd/system/kubelet.service; enabled; vendor preset: disabled)
Active: activating (auto-restart) (Result: exit-code) since Sat 2021-05-22 18:38:21 +06; 2s ago
Docs: https://github.com/kubernetes/kubernetes
Process: 50977 ExecStart=/usr/local/bin/kubelet --config=/var/lib/kubelet/kubelet-config.yaml --image-pull-progress-deadline=2m --kubeconfig=/var/lib/kubelet/kubeconfig --tls-cert-file=/var/lib/kubelet/worker-1.crt --tls-private-key-file=/var/lib/kubelet/worker-1.key --network-plugin=cni --register-node=true --v=2 (code=exited, status=255)
Main PID: 50977 (code=exited, status=255)

May 22 18:38:21 worker-1 systemd[1]: Unit kubelet.service entered failed state.
May 22 18:38:21 worker-1 systemd[1]: kubelet.service failed.

(N.B: also added kubelet.service, kubelet-config.yaml and kubeconfig file at the bottom)

[root@worker-1 ~]# journalctl -u kubelet.service -r

– Logs begin at Sat 2021-05-22 16:18:05 +06, end at Sat 2021-05-22 18:50:02 +06. –
May 22 18:49:58 worker-1 systemd[1]: kubelet.service failed.
May 22 18:49:58 worker-1 systemd[1]: Unit kubelet.service entered failed state.
May 22 18:49:58 worker-1 systemd[1]: kubelet.service: main process exited, code=exited, status=255/n/a
May 22 18:49:58 worker-1 kubelet[53787]: F0522 18:49:58.706032 53787 server.go:261] failed to run Kubelet: failed to create kubelet: misconfigur
May 22 18:49:58 worker-1 kubelet[53787]: I0522 18:49:58.705786 53787 docker_service.go:256] Docker Info: &{ID:KBO4:DMYB:DT5A:RE4I:MUGX:ZWM7:GUS4
May 22 18:49:58 worker-1 kubelet[53787]: I0522 18:49:58.675895 53787 docker_service.go:251] Docker cri networking managed by cni
May 22 18:49:58 worker-1 kubelet[53787]: I0522 18:49:58.675860 53787 plugins.go:159] Loaded network plugin “cni”
May 22 18:49:58 worker-1 kubelet[53787]: W0522 18:49:58.675841 53787 cni.go:203] Unable to update cni config: No networks found in /etc/cni/net.
May 22 18:49:58 worker-1 kubelet[53787]: W0522 18:49:58.675742 53787 hostport_manager.go:68] The binary conntrack is not installed, this can cau
May 22 18:49:58 worker-1 kubelet[53787]: W0522 18:49:58.663870 53787 cni.go:203] Unable to update cni config: No networks found in /etc/cni/net.
May 22 18:49:58 worker-1 kubelet[53787]: I0522 18:49:58.663329 53787 docker_service.go:236] Hairpin mode set to “hairpin-veth”
May 22 18:49:58 worker-1 kubelet[53787]: W0522 18:49:58.663283 53787 docker_service.go:540] Hairpin mode set to “promiscuous-bridge” but kubenet
May 22 18:49:58 worker-1 kubelet[53787]: I0522 18:49:58.659886 53787 client.go:104] Start docker client with request timeout=15m0s
May 22 18:49:58 worker-1 kubelet[53787]: I0522 18:49:58.659859 53787 client.go:75] Connecting to docker on unix:///var/run/docker.sock
May 22 18:49:58 worker-1 kubelet[53787]: I0522 18:49:58.654356 53787 kubelet.go:306] Watching apiserver
May 22 18:49:58 worker-1 kubelet[53787]: I0522 18:49:58.654318 53787 server.go:941] Using root directory: /var/lib/kubelet
May 22 18:49:58 worker-1 kubelet[53787]: I0522 18:49:58.654241 53787 state_checkpoint.go:101] [cpumanager] state checkpoint: defaultCPUSet:
May 22 18:49:58 worker-1 kubelet[53787]: I0522 18:49:58.654228 53787 state_checkpoint.go:100] [cpumanager] state checkpoint: restored state from
May 22 18:49:58 worker-1 kubelet[53787]: I0522 18:49:58.654191 53787 state_mem.go:92] [cpumanager] updated cpuset assignments: “map[]”
May 22 18:49:58 worker-1 kubelet[53787]: I0522 18:49:58.654169 53787 state_mem.go:84] [cpumanager] updated default cpuset: “”
May 22 18:49:58 worker-1 kubelet[53787]: I0522 18:49:58.653956 53787 state_mem.go:36] [cpumanager] initializing new in-memory state store
May 22 18:49:58 worker-1 kubelet[53787]: I0522 18:49:58.653890 53787 manager.go:109] Creating Device Plugin manager at /var/lib/kubelet/device-p
May 22 18:49:58 worker-1 kubelet[53787]: I0522 18:49:58.653869 53787 container_manager_linux.go:272] Creating device plugin manager: true
May 22 18:49:58 worker-1 kubelet[53787]: I0522 18:49:58.653632 53787 container_manager_linux.go:253] Creating Container Manager object based on
May 22 18:49:58 worker-1 kubelet[53787]: I0522 18:49:58.653584 53787 container_manager_linux.go:248] container manager verified user specified c
May 22 18:49:58 worker-1 kubelet[53787]: I0522 18:49:58.652960 53787 server.go:666] --cgroups-per-qos enabled, but --cgroup-root was not specifi
May 22 18:49:58 worker-1 kubelet[53787]: I0522 18:49:58.652773 53787 manager.go:235] Version: {KernelVersion:3.10.0-1160.24.1.el7.x86_64 Contain
May 22 18:49:58 worker-1 kubelet[53787]: I0522 18:49:58.645172 53787 manager.go:229] Machine: {NumCores:2 CpuFrequency:2996527 MemoryCapacity:39
May 22 18:49:58 worker-1 kubelet[53787]: I0522 18:49:58.635759 53787 fs.go:143] Filesystem partitions: map[tmpfs:{mountpoint:/dev/shm major:0 mi
May 22 18:49:58 worker-1 kubelet[53787]: I0522 18:49:58.635661 53787 fs.go:142] Filesystem UUIDs: map[747638bb-7f14-471a-9791-702782d239ee:/dev/
May 22 18:49:58 worker-1 kubelet[53787]: I0522 18:49:58.565113 53787 manager.go:155] cAdvisor running in container: “/sys/fs/cgroup/cpu,cpuacct”
May 22 18:49:58 worker-1 kubelet[53787]: I0522 18:49:58.557835 53787 server.go:523] No cloud provider specified: “” from the config file: “”
May 22 18:49:58 worker-1 kubelet[53787]: I0522 18:49:58.557785 53787 plugins.go:103] No cloud provider specified.
May 22 18:49:58 worker-1 kubelet[53787]: I0522 18:49:58.557657 53787 feature_gate.go:206] feature gates: &{map[]}
May 22 18:49:58 worker-1 kubelet[53787]: I0522 18:49:58.557542 53787 feature_gate.go:206] feature gates: &{map[]}
May 22 18:49:58 worker-1 kubelet[53787]: I0522 18:49:58.557465 53787 server.go:407] Version: v1.13.0
May 22 18:49:58 worker-1 kubelet[53787]: I0522 18:49:58.557396 53787 mount_linux.go:179] Detected OS with systemd
May 22 18:49:58 worker-1 kubelet[53787]: I0522 18:49:58.527192 53787 feature_gate.go:206] feature gates: &{map[]}
May 22 18:49:58 worker-1 kubelet[53787]: I0522 18:49:58.527088 53787 feature_gate.go:206] feature gates: &{map[]}
May 22 18:49:58 worker-1 kubelet[53787]: Flag --tls-private-key-file has been deprecated, This parameter should be set via the config file specifi
May 22 18:49:58 worker-1 kubelet[53787]: Flag --tls-cert-file has been deprecated, This parameter should be set via the config file specified by t
.



[root@worker-1 ~]# vi /etc/systemd/system/kubelet.service
[Unit]
Description=Kubernetes Kubelet
Documentation=https://github.com/kubernetes/kubernetes
After=docker.service
Requires=docker.service

[Service]
ExecStart=/usr/local/bin/kubelet
–config=/var/lib/kubelet/kubelet-config.yaml
–image-pull-progress-deadline=2m
–kubeconfig=/var/lib/kubelet/kubeconfig
–tls-cert-file=/var/lib/kubelet/worker-1.crt
–tls-private-key-file=/var/lib/kubelet/worker-1.key
–network-plugin=cni
–register-node=true
–v=2
Restart=on-failure
RestartSec=5

[Install]
WantedBy=multi-user.target

[root@worker-1 ~]# cat /var/lib/kubelet/kubelet-config.yaml
kind: KubeletConfiguration
apiVersion: kubelet.config.k8s.io/v1beta1
authentication:
anonymous:
enabled: false
webhook:
enabled: true
x509:
clientCAFile: “/var/lib/kubernetes/ca.crt”
authorization:
mode: Webhook
clusterDomain: “cluster.local”
clusterDNS:

  • “10.96.0.10”
    resolvConf: “/run/systemd/resolve/resolv.conf”
    runtimeRequestTimeout: “15m”

[root@worker-1 ~]# cat /var/lib/kubelet/kubeconfig
apiVersion: v1
clusters:

  • cluster:
    certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUNyRENDQVpRQ0NRRDNSTHFPZVo1MjR6QU5CZ2txaGtpRzl3MEJBUXNGQURBWU1SWXdGQVlEVlFRRERBMUwKVlVKRlVrNUZWRVZUTFVOQk1CNFhEVEl4TURVd01qQTVNek13TTFvWERUSTBNREV5TnpBNU16TXdNMW93R0RFVwpNQlFHQTFVRUF3d05TMVZDUlZKT1JWUkZVeTFEUVRDQ0FTSXdEUVlKS29aSWh2Y05BUUVCQlFBRGdnRVBBRENDCkFRb0NnZ0VCQU1zKzROS3hwQzBQa3JLcTJVMVZPU2Rsb2MyZFh0UEpYZENvTDAwU01NVDlWejlHZjJmQVRockQKZWhZUzVDSWVmVlVFb09SdFgwc2g2Rm5kbU54N2VaNS9oWTVNQU1rVmxnNmZWRlBnSnB2Mkk1MW9sTTlEZXRnZQpvRS80Q3ZuZ0c5MHpaV3IzWGQ5cmJrZ2tRWE5VK3V0NS9jZThadGpZRUJrMldwbGErWk5zMkVHUFJoTDV3U2FwCiticUV3QjBVTE95Y1F4ZWVEMzRpdFF0Rnc3NlZMYmVIRGY1RWhPTWxZYTdISHl3VGlwV0lYNXNsek5MNjBlU2YKdEx6aHdsbGp6bXV3RUNTTU42YWk0MUcvSmtYU1k4QWg4N2dBRC9BWlFhN3Vza1U5Rk81d1I5NHVnTFlUb2F3WgprR2Jvb3lsT2pJNlNoSUdvN1kxY2lOd3lYNnZockNVQ0F3RUFBVEFOQmdrcWhraUc5dzBCQVFzRkFBT0NBUUVBClJBYjQwV0F2SHdOeWNzSSttYUg3clRCZk5BalRJL1QvdmRuY3dUam9HMkZhYzI4NHhGZjRPRWJkMTVVckphWXQKUEoyZFV4Y0plNCtaSlpXd2VCYTMzVEFUdmlrOHgvLy9qZjdkVjN3dUtqOVQvTGxpcXFJVUJqMlhSaExZTkZjaQpBcjZjcUNNU1kvNVhJMzJBdk11aTg1RGx3aDNGQ3RNQ293YlJTamRxRHovR0Q2WTZ4ejdGZC9HODdJNmJ4U2JYCjY1NDAvOGdkb1FLZTBKR3hLUFNTNWR2UjBHa3VVSEVjbUVvZ3ZGRmZkamFTS0FobXlOaE4vVlpzdVcrNmorcngKKzFRNjY5eFVCZFprZkorRmlOdHJlendwa3RrbTVHeXpta0gydmZxNFRjMWF0YzcvWEs3cFMrMy9aa3RoenlBSQpVWTEzNTNWRXJVUklEUmxpQVVyOTBBPT0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=
    server: https://192.168.60.230:6443
    name: kubernetes-the-hard-way
    contexts:
  • context:
    cluster: kubernetes-the-hard-way
    user: system:node:worker-1
    name: default
    current-context: default
    kind: Config
    preferences: {}
    users:
  • name: system:node:worker-1
    user:
    client-certificate-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURCakNDQWU2Z0F3SUJBZ0lKQUxuRnZvZEw0aW9YTUEwR0NTcUdTSWIzRFFFQkN3VUFNQmd4RmpBVUJnTlYKQkFNTURVdFZRa1ZTVGtWVVJWTXRRMEV3SGhjTk1qRXdOVEl4TVRFME5ETTNXaGNOTWpRd01qRTFNVEUwTkRNMwpXakEyTVIwd0d3WURWUVFEREJSemVYTjBaVzA2Ym05a1pUcDNiM0pyWlhJdE1URVZNQk1HQTFVRUNnd01jM2x6CmRHVnRPbTV2WkdWek1JSUJJakFOQmdrcWhraUc5dzBCQVFFRkFBT0NBUThBTUlJQkNnS0NBUUVBMU1hdkErM3EKdFJWdElVQktnaDNmeUN1RldRYUhCT3pYS0NvZ0l1MC9yUkh1R3NyVWx5c205MjR0blFlODV6TWxWUjUvcldyRAo3c1doT0pBZHBqRHVSMm1aMDNUa09IcjJncGQ1R3hKZTBYU1poamg2QWo2emhIWGI5UmNzZnV0VGZVNzJNS2lhCjdKQWJ5ODN4RnRxcm45OU41MEFwOW9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 ~]# journalctl -u kubelet.service -r

failed to run Kubelet: failed to create kubelet: misconfiguration: kubelet cgroup driver: “cgroupfs” is different from docker cgroup driver: “systemd”

Solution: added the flag --cgroup-driver=systemd in kubelet.service file.

[root@worker-1 ~]# vi /etc/systemd/system/kubelet.service
[Unit]
Description=Kubernetes Kubelet
Documentation=https://github.com/kubernetes/kubernetes
After=docker.service
Requires=docker.service

[Service]
ExecStart=/usr/local/bin/kubelet
–config=/var/lib/kubelet/kubelet-config.yaml
–image-pull-progress-deadline=2m
–kubeconfig=/var/lib/kubelet/kubeconfig
–tls-cert-file=/var/lib/kubelet/worker-1.crt
–tls-private-key-file=/var/lib/kubelet/worker-1.key
–network-plugin=cni
–register-node=true
–v=2
–cgroup-driver=systemd
Restart=on-failure
RestartSec=5

[Install]
WantedBy=multi-user.target