Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions cluster/gce/cloud-init/master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@ write_files:
permissions: 0644
owner: root
content: |
# installed by cloud-init
oom_score = -999

[cgroup]
path = "/runtime"

[plugins.linux]
shim = "/home/containerd/usr/local/bin/containerd-shim"
runtime = "/home/containerd/usr/local/sbin/runc"
Expand All @@ -61,6 +55,7 @@ write_files:
RestartSec=5
Delegate=yes
KillMode=process
OOMScoreAdjust=-999
LimitNOFILE=1048576
# Having non-zero Limit*s causes performance problems due to accounting overhead
# in the kernel. We recommend using cgroups to do container-local accounting.
Expand Down
7 changes: 1 addition & 6 deletions cluster/gce/cloud-init/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,6 @@ write_files:
permissions: 0644
owner: root
content: |
# installed by cloud-init
oom_score = -999

[cgroup]
path = "/runtime"

[plugins.linux]
shim = "/home/containerd/usr/local/bin/containerd-shim"
runtime = "/home/containerd/usr/local/sbin/runc"
Expand All @@ -59,6 +53,7 @@ write_files:
RestartSec=5
Delegate=yes
KillMode=process
OOMScoreAdjust=-999
LimitNOFILE=1048576
# Having non-zero Limit*s causes performance problems due to accounting overhead
# in the kernel. We recommend using cgroups to do container-local accounting.
Expand Down
2 changes: 1 addition & 1 deletion cluster/gce/env
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ export KUBE_CONTAINER_RUNTIME_ENDPOINT="/run/containerd/containerd.sock"
export KUBE_LOAD_IMAGE_COMMAND="/home/containerd/usr/local/bin/ctr cri load"
export NETWORK_POLICY_PROVIDER="calico"
export NON_MASQUERADE_CIDR="0.0.0.0/0"
export KUBE_KUBELET_EXTRA_ARGS="--runtime-cgroups=/runtime"
export KUBE_KUBELET_EXTRA_ARGS="--runtime-cgroups=/system.slice/containerd.service"
export KUBE_FEATURE_GATES="ExperimentalCriticalPodAnnotation=true,CRIContainerLogRotation=true"
10 changes: 1 addition & 9 deletions contrib/ansible/cri-containerd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,6 @@
- name: "Create a directory for containerd config"
file: path=/etc/containerd state=directory

- name: "Add containerd config file"
blockinfile:
path: /etc/containerd/config.toml
create: yes
block: |
[cgroup]
path = "/runtime"

- name: "Start Containerd"
systemd: name=containerd daemon_reload=yes state=started enabled=yes

Expand All @@ -46,7 +38,7 @@
- name: "Add runtime args in kubelet conf"
lineinfile:
dest: "/etc/systemd/system/kubelet.service.d/10-kubeadm.conf"
line: "Environment=\"KUBELET_EXTRA_ARGS= --runtime-cgroups=/runtime --container-runtime=remote --runtime-request-timeout=15m --container-runtime-endpoint=/run/containerd/containerd.sock\""
line: "Environment=\"KUBELET_EXTRA_ARGS= --runtime-cgroups=/system.slice/containerd.service --container-runtime=remote --runtime-request-timeout=15m --container-runtime-endpoint=/run/containerd/containerd.sock\""
insertafter: '\[Service\]'
when: check_args.stdout == ""

Expand Down
7 changes: 1 addition & 6 deletions test/e2e_node/init.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@ write_files:
permissions: 0644
owner: root
content: |
# installed by cloud-init
oom_score = -999

[cgroup]
path = "/runtime"

[plugins.linux]
shim = "/home/containerd/usr/local/bin/containerd-shim"
runtime = "/home/containerd/usr/local/sbin/runc"
Expand All @@ -58,6 +52,7 @@ write_files:
RestartSec=5
Delegate=yes
KillMode=process
OOMScoreAdjust=-999
LimitNOFILE=1048576
# Having non-zero Limit*s causes performance problems due to accounting overhead
# in the kernel. We recommend using cgroups to do container-local accounting.
Expand Down