๐ก Kubelet Daemon Ops: Resource Reservation โ Executive Summary
Technical architectural analysis, practical configuration manifests, and deployment instructions for Kubelet Daemon Ops: Resource Reservation.
Configurations
Apply max-pod-pids, podPidsLimit
- Simultaneous operation of 3 worker nodes
-
Recommended method: Modify
config.yaml(based on Kubeadm)-
/etc/kubernetes/kubelet-config.yaml(if not present, then) -
/var/lib/kubelet/config.yaml
-
-
How to edit:
1. Make sure the file has apodPidsLimitfield. (์์ผ๋ฉด ์ถ๊ฐ)
2. Set the value.
yaml
# /var/lib/kubelet/config.yaml
apiVersion: kubelet.config.k8s.io/v1beta1
kind: KubeletConfiguration
...
podPidsLimit: 4096 # ์ด ์ค์ ์ถ๊ฐ
...
- Application Process (Important)
1. If you have modified the configuration file, you must allow the Kubelet to read it again.
Restart the Kubelet after modifying the configuration
bash
systemctl daemon-reload
systemctl restart kubelet
- Check whether the settings are reflected:
Check whether the settings were actually applied using the following command within the node.
bash
# Kubelet ์ค์ ๋คํ ํ์ธ
kubectl get --raw "/api/v1/nodes/<๋
ธ๋์ด๋ฆ>/proxy/configz" | jq | grep podPidsLimit
- Summary and precautions
- If you want to put it directly in
/etc/kubernetes/kubelet.env, you need to put it in the flag format called-pod-max-pids=4096. - However, the standard for recent clusters is to write
podPidsLimit: 4096inside/var/lib/kubelet/config.yaml.




Leave a Reply