mirror of https://github.com/k3s-io/k3s
Use containerd-shim-run-v2
parent
82cf85764d
commit
90df4a1921
|
@ -37,6 +37,9 @@ sandbox_image = "{{ .NodeConfig.AgentConfig.PauseImage }}"
|
|||
conf_dir = "{{ .NodeConfig.AgentConfig.CNIConfDir }}"
|
||||
{{ end -}}
|
||||
|
||||
[plugins.cri.containerd.runtimes.runc]
|
||||
runtime_type = "io.containerd.runc.v2"
|
||||
|
||||
{{ if .PrivateRegistryConfig }}
|
||||
{{ if .PrivateRegistryConfig.Mirrors }}
|
||||
[plugins.cri.registry.mirrors]{{end}}
|
||||
|
|
|
@ -48,6 +48,7 @@ rm -f \
|
|||
bin/runc \
|
||||
bin/containerd-shim \
|
||||
bin/containerd-shim-runc-v1 \
|
||||
bin/containerd-shim-runc-v2 \
|
||||
bin/k3s-server \
|
||||
bin/kubectl \
|
||||
bin/crictl \
|
||||
|
@ -92,6 +93,6 @@ echo Building containerd-shim
|
|||
make -C ./vendor/github.com/containerd/containerd bin/containerd-shim
|
||||
cp -f ./vendor/github.com/containerd/containerd/bin/containerd-shim ./bin/containerd-shim
|
||||
|
||||
echo Building containerd-shim-runc-v1
|
||||
make -C ./vendor/github.com/containerd/containerd bin/containerd-shim-runc-v1
|
||||
cp -f ./vendor/github.com/containerd/containerd/bin/containerd-shim-runc-v1 ./bin/containerd-shim-runc-v1
|
||||
echo Building containerd-shim-runc-v2
|
||||
make -C ./vendor/github.com/containerd/containerd bin/containerd-shim-runc-v2
|
||||
cp -f ./vendor/github.com/containerd/containerd/bin/containerd-shim-runc-v2 ./bin/containerd-shim-runc-v2
|
||||
|
|
|
@ -4,7 +4,7 @@ package main
|
|||
|
||||
import (
|
||||
_ "github.com/containerd/containerd/cmd/containerd-shim"
|
||||
_ "github.com/containerd/containerd/cmd/containerd-shim-runc-v1"
|
||||
_ "github.com/containerd/containerd/cmd/containerd-shim-runc-v2"
|
||||
_ "github.com/coreos/go-systemd/activation"
|
||||
_ "github.com/go-bindata/go-bindata"
|
||||
_ "github.com/go-bindata/go-bindata/go-bindata"
|
||||
|
|
Loading…
Reference in New Issue