1. Edit the Kubelet Configuration File
| |
Modify the relevant Kubelet parameters
ExecStart=/usr/local/bin/kubelet $KUBELET_KUBECONFIG_ARGS $KUBELET_CONFIG_ARGS $KUBELET_KUBEADM_ARGS $KUBELET_EXTRA_ARGS
You can list the available parameters with the following command:
| |
For example, if you need to change --sync-frequency in KUBELET_KUBECONFIG_ARGS, the period for syncing container configuration, the default value is 1 min. What it means is that a container only notices an update to the configuration file it has mounted 1 min after the change.
2. Restart the Kubelet Service
| |
3. Check the Kubelet Process
Use the following command to see the relevant startup parameters
| |
