31 lines
672 B
Plaintext
31 lines
672 B
Plaintext
|
|
|
|
修改PVC文件
|
|
修改全部的NAMESPACE
|
|
修改statefulset里面的IMAGE
|
|
|
|
|
|
# BE出现下面的错误
|
|
like
|
|
* soft nofile 655350
|
|
* hard nofile 655350
|
|
and then run 'ulimit -n 655350' to take effect on current session.
|
|
|
|
需要修改 ContainerD的Service
|
|
|
|
/lib/systemd/system/containerd.service
|
|
|
|
[Service]
|
|
LimitNOFILE=655350 <<<
|
|
LimitNPROC=infinity
|
|
LimitMEMLOCK=infinity
|
|
EOF
|
|
|
|
# 2. 重新加载并重启 containerd
|
|
sudo systemctl daemon-reload
|
|
sudo systemctl restart containerd
|
|
|
|
# 3. 验证 containerd 的限制
|
|
ps aux | grep containerd | grep -v grep
|
|
cat /proc/$(pgrep containerd | head -1)/limits | grep "open files"
|
|
# 应该显示: Max open files 655350 655350 files |