-
Notifications
You must be signed in to change notification settings - Fork 567
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2111 from chilianyi/support-cri-docker
Support use docker for version >= v1.24.0
- Loading branch information
Showing
12 changed files
with
259 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
/* | ||
Copyright 2021 The KubeSphere Authors. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
package templates | ||
|
||
import ( | ||
"text/template" | ||
|
||
"github.com/lithammer/dedent" | ||
) | ||
|
||
var CriDockerService = template.Must(template.New("cri-docker.service").Parse( | ||
dedent.Dedent(`[Unit] | ||
Description=CRI Interface for Docker Application Container Engine | ||
Documentation=https://docs.mirantis.com | ||
[Service] | ||
Type=notify | ||
ExecStart=/usr/bin/cri-dockerd --pod-infra-container-image docker.io/kubesphere/pause:3.8 | ||
ExecReload=/bin/kill -s HUP $MAINPID | ||
TimeoutSec=0 | ||
RestartSec=2 | ||
Restart=always | ||
# Note that StartLimit* options were moved from "Service" to "Unit" in systemd 229. | ||
# Both the old, and new location are accepted by systemd 229 and up, so using the old location | ||
# to make them work for either version of systemd. | ||
StartLimitBurst=3 | ||
# Note that StartLimitInterval was renamed to StartLimitIntervalSec in systemd 230. | ||
# Both the old, and new name are accepted by systemd 230 and up, so using the old name to make | ||
# this option work for either version of systemd. | ||
StartLimitInterval=60s | ||
# Having non-zero Limit*s causes performance problems due to accounting overhead | ||
# in the kernel. We recommend using cgroups to do container-local accounting. | ||
LimitNOFILE=infinity | ||
LimitNPROC=infinity | ||
LimitCORE=infinity | ||
# Comment TasksMax if your systemd version does not support it. | ||
# Only systemd 226 and above support this option. | ||
TasksMax=infinity | ||
Delegate=yes | ||
KillMode=process | ||
[Install] | ||
WantedBy=multi-user.target | ||
`))) |
Oops, something went wrong.