Browse Source

02k8s-install-centos.sh

master
lizw 1 year ago
parent
commit
8a92f84c6b
  1. 50
      sd_dsl/02k8s-install-centos.sh

50
sd_dsl/02k8s-install-centos.sh

@ -861,33 +861,31 @@ EOF
# /etc/docker/daemon.json # /etc/docker/daemon.json
cat << EOF > /etc/docker/daemon.json cat << EOF > /etc/docker/daemon.json
{ {
"data-root": "/var/lib/docker", "data-root": "/var/lib/docker",
"log-driver": "json-file", "log-driver": "json-file",
"log-opts": { "log-opts": {
"max-size": "100m", "max-size": "200m",
"max-file": "3" "max-file": "3"
},
"default-ulimits": {
"nofile": {
"Name": "nofile",
"Hard": 655360,
"Soft": 655360
}, },
"nproc": { "default-ulimits": {
"Name": "nproc", "nofile": {
"Hard": 655360, "Name": "nofile",
"Soft": 655360 "Hard": 655360,
} "Soft": 655360
}, },
"live-restore": true, "nproc": {
"oom-score-adjust": -1000, "Name": "nproc",
"max-concurrent-downloads": 10, "Hard": 655360,
"max-concurrent-uploads": 10, "Soft": 655360
"storage-driver": "overlay2", }
"storage-opts": ["overlay2.override_kernel_check=true"], },
"exec-opts": ["native.cgroupdriver=systemd"], "live-restore": true,
"registry-mirrors": [ "max-concurrent-downloads": 10,
] "max-concurrent-uploads": 10,
"registry-mirrors": [
],
"insecure-registries": [
]
} }
EOF EOF
sed -i 's|#oom_score = 0|oom_score = -999|' /etc/containerd/config.toml sed -i 's|#oom_score = 0|oom_score = -999|' /etc/containerd/config.toml

Loading…
Cancel
Save