浏览代码

02k8s-install-centos.sh

lizw 10 月之前
父节点
当前提交
8a92f84c6b
共有 1 个文件被更改,包括 24 次插入26 次删除
  1. 24 26
      sd_dsl/02k8s-install-centos.sh

+ 24 - 26
sd_dsl/02k8s-install-centos.sh

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