@@ -53,52 +53,52 @@ spec:
53
53
nameserver 1.0.0.1
54
54
nameserver 2606:4700:4700::1111
55
55
- content : |
56
- # Copyright The containerd Authors.
57
- #
58
- # Licensed under the Apache License, Version 2.0 (the "License");
59
- # you may not use this file except in compliance with the License.
60
- # You may obtain a copy of the License at
61
- #
62
- # http://www.apache.org/licenses/LICENSE-2.0
63
- #
64
- # Unless required by applicable law or agreed to in writing, software
65
- # distributed under the License is distributed on an "AS IS" BASIS,
66
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
67
- # See the License for the specific language governing permissions and
68
- # limitations under the License.
69
- #
70
- # https://raw.githubusercontent.com/containerd/containerd/main/containerd.service
56
+ # Copyright The containerd Authors.
57
+ #
58
+ # Licensed under the Apache License, Version 2.0 (the "License");
59
+ # you may not use this file except in compliance with the License.
60
+ # You may obtain a copy of the License at
61
+ #
62
+ # http://www.apache.org/licenses/LICENSE-2.0
63
+ #
64
+ # Unless required by applicable law or agreed to in writing, software
65
+ # distributed under the License is distributed on an "AS IS" BASIS,
66
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
67
+ # See the License for the specific language governing permissions and
68
+ # limitations under the License.
69
+ #
70
+ # https://raw.githubusercontent.com/containerd/containerd/main/containerd.service
71
71
72
- [Unit]
73
- Description=containerd container runtime
74
- Documentation=https://containerd.io
75
- After=network.target local-fs.target dbus.service
72
+ [Unit]
73
+ Description=containerd container runtime
74
+ Documentation=https://containerd.io
75
+ After=network.target local-fs.target dbus.service
76
76
77
- [Service]
78
- ExecStartPre=-/sbin/modprobe overlay
79
- ExecStart=/usr/local/bin/containerd
77
+ [Service]
78
+ ExecStartPre=-/sbin/modprobe overlay
79
+ ExecStart=/usr/local/bin/containerd
80
80
81
- Type=notify
82
- Delegate=yes
83
- KillMode=process
84
- Restart=always
85
- RestartSec=5
81
+ Type=notify
82
+ Delegate=yes
83
+ KillMode=process
84
+ Restart=always
85
+ RestartSec=5
86
86
87
- # Having non-zero Limit*s causes performance problems due to accounting overhead
88
- # in the kernel. We recommend using cgroups to do container-local accounting.
89
- LimitNPROC=infinity
90
- LimitCORE=infinity
87
+ # Having non-zero Limit*s causes performance problems due to accounting overhead
88
+ # in the kernel. We recommend using cgroups to do container-local accounting.
89
+ LimitNPROC=infinity
90
+ LimitCORE=infinity
91
91
92
- # Comment TasksMax if your systemd version does not supports it.
93
- # Only systemd 226 and above support this version.
94
- TasksMax=infinity
95
- OOMScoreAdjust=-999
92
+ # Comment TasksMax if your systemd version does not supports it.
93
+ # Only systemd 226 and above support this version.
94
+ TasksMax=infinity
95
+ OOMScoreAdjust=-999
96
96
97
- [Install]
98
- WantedBy=multi-user.target
99
- owner : root:root
100
- path : /etc/systemd/system/containerd.service
101
- permissions : " 0744"
97
+ [Install]
98
+ WantedBy=multi-user.target
99
+ owner: root:root
100
+ path: /etc/systemd/system/containerd.service
101
+ permissions: "0744"
102
102
preKubeadmCommands :
103
103
- set -x
104
104
- grep VERSION= /etc/os-release; uname -a
0 commit comments