Skip to content

Commit f0f53d2

Browse files
committed
Use containerd cri plugin
- remove cri-containerd package - kubelet container mounting hack - previously cri-containerd created the /var/lib/cni/{bin,conf} directories and containerd appears to process runtime mounts before mkdir entries Signed-off-by: Jason DeTiberus <[email protected]>
1 parent dcef9d9 commit f0f53d2

File tree

6 files changed

+26
-103
lines changed

6 files changed

+26
-103
lines changed

.circleci/config.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ image_build: &image_build
6868
load kubernetes-docker-image-cache-control-plane
6969
;;
7070
cri-containerd)
71-
load cri-containerd
7271
;;
7372
*)
7473
echo "Unknown $KUBE_RUNTIME"
@@ -196,8 +195,6 @@ jobs:
196195
197196
pkg-kubelet:
198197
<<: *linuxkit_pkg_build
199-
pkg-cri-containerd:
200-
<<: *linuxkit_pkg_build
201198
pkg-kube-e2e-test:
202199
<<: *linuxkit_pkg_build
203200

@@ -275,7 +272,6 @@ jobs:
275272
cp .circleci/content-trust.key ~/.docker/trust/private/b056f84873aa0be205dfe826afa6e7458120c9569dd19a2a84154498fb1165d5.key
276273
277274
linuxkit pkg push --nobuild pkg/kubelet
278-
linuxkit pkg push --nobuild pkg/cri-containerd
279275
linuxkit pkg push --nobuild pkg/kube-e2e-test
280276
linuxkit pkg push --nobuild pkg/kubernetes-docker-image-cache-common
281277
linuxkit pkg push --nobuild pkg/kubernetes-docker-image-cache-control-plane
@@ -292,9 +288,6 @@ workflows:
292288
- pkg-kubelet:
293289
requires:
294290
- dependencies
295-
- pkg-cri-containerd:
296-
requires:
297-
- dependencies
298291
- pkg-kube-e2e-test:
299292
requires:
300293
- dependencies
@@ -321,12 +314,10 @@ workflows:
321314
requires:
322315
- dependencies
323316
- pkg-kubelet
324-
- pkg-cri-containerd
325317
- image-cri-containerd-bridge:
326318
requires:
327319
- dependencies
328320
- pkg-kubelet
329-
- pkg-cri-containerd
330321

331322
- push-pkgs-to-hub:
332323
# We want everything to have passed, which is a bit
@@ -335,7 +326,6 @@ workflows:
335326
requires:
336327
- lint
337328
- pkg-kubelet
338-
- pkg-cri-containerd
339329
- pkg-kube-e2e-test
340330
- pkg-kubernetes-docker-image-cache-common
341331
- pkg-kubernetes-docker-image-cache-control-plane

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ kube-weave.yaml:
3030
.PHONY: update-hashes
3131
update-hashes:
3232
set -e ; for tag in $$(linuxkit pkg show-tag pkg/kubelet) \
33-
$$(linuxkit pkg show-tag pkg/cri-containerd) \
3433
$$(linuxkit pkg show-tag pkg/kubernetes-docker-image-cache-common) \
3534
$$(linuxkit pkg show-tag pkg/kubernetes-docker-image-cache-control-plane) ; do \
3635
image=$${tag%:*} ; \

pkg/cri-containerd/Dockerfile

Lines changed: 0 additions & 54 deletions
This file was deleted.

pkg/cri-containerd/build.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

yml/cri-containerd.yml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,23 @@
1-
services:
2-
- name: cri-containerd
3-
image: linuxkit/cri-containerd:474d704f6dcb173b10768ab1d1bd61674468c7f9
4-
cgroupsPath: podruntime/cri-containerd
51
files:
2+
- path: /etc/crictl.yaml
3+
contents: |
4+
runtime-endpoint: unix:///run/containerd/containerd.sock
5+
image-endpoint: unix:///run/containerd/containerd.sock
6+
timeout: 10
7+
- path: /etc/containerd/config.toml
8+
contents: |
9+
state = "/run/containerd"
10+
root = "/var/lib/containerd"
11+
snapshotter = "io.containerd.snapshotter.v1.overlayfs"
12+
[grpc]
13+
address = "/run/containerd/containerd.sock"
14+
uid = 0
15+
gid = 0
16+
[debug]
17+
address = "/run/containerd/debug.sock"
18+
level = "info"
19+
[metrics]
20+
address = ""
621
- path: /etc/kubelet.sh.conf
722
contents: |
8-
KUBELET_ARGS="--container-runtime=remote --container-runtime-endpoint=unix:///var/run/cri-containerd.sock"
23+
KUBELET_ARGS="--container-runtime=remote --container-runtime-endpoint=unix:///run/containerd/containerd.sock"

yml/kube.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ onboot:
2424
- name: mounts
2525
image: linuxkit/mount:0eba853dfa99f01166831c30f37f6bb818b61f2f
2626
command: ["/usr/bin/mountie", "/var/lib/"]
27+
- name: dir-hack
28+
image: busybox:latest
29+
command: ["mkdir", "-p", "/var/lib/cni/conf", "/var/lib/cni/bin"]
30+
binds:
31+
- /var:/var:rshared,rbind
2732
services:
2833
- name: getty
2934
image: linuxkit/getty:32247863cace34f3b441b4c5d9d3f5cb5f64d189
@@ -40,7 +45,7 @@ services:
4045
image: linuxkit/sshd:39d6bdc9a7489ceffa761ad5cb96c87b50d6732d
4146
cgroupsPath: systemreserved/sshd
4247
- name: kubelet
43-
image: linuxkit/kubelet:ddd2e094e44aae9bab3eb3b8d378d2383d6cda01
48+
image: linuxkit/kubelet:1775276ba903b90615d91f0bd034a527163ffbd4
4449
cgroupsPath: podruntime/kubelet
4550
files:
4651
- path: etc/linuxkit.yml

0 commit comments

Comments
 (0)