mirror of
https://github.com/siderolabs/talos.git
synced 2025-09-09 16:01:14 +02:00
fix: containerd failed to load plugin
Solve warning message: failed to load plugin io.containerd.internal.v1.opt Co-authored-by: Andrey Smirnov <andrey.smirnov@talos-systems.com> Signed-off-by: Serge Logvinov <serge.logvinov@sinextra.dev> Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
This commit is contained in:
parent
1ffa8e0480
commit
caa76be2c9
16
Dockerfile
16
Dockerfile
@ -352,12 +352,14 @@ COPY --from=machined-build-amd64 /machined /rootfs/sbin/init
|
|||||||
# symlinks to avoid accidentally cleaning them up.
|
# symlinks to avoid accidentally cleaning them up.
|
||||||
COPY ./hack/cleanup.sh /toolchain/bin/cleanup.sh
|
COPY ./hack/cleanup.sh /toolchain/bin/cleanup.sh
|
||||||
RUN cleanup.sh /rootfs
|
RUN cleanup.sh /rootfs
|
||||||
COPY --chmod=0644 hack/containerd.toml /rootfs/etc/cri/containerd.toml
|
COPY --chmod=0644 hack/containerd.toml /rootfs/etc/containerd/config.toml
|
||||||
|
COPY --chmod=0644 hack/cri-containerd.toml /rootfs/etc/cri/containerd.toml
|
||||||
RUN touch /rootfs/etc/resolv.conf
|
RUN touch /rootfs/etc/resolv.conf
|
||||||
RUN touch /rootfs/etc/hosts
|
RUN touch /rootfs/etc/hosts
|
||||||
RUN touch /rootfs/etc/os-release
|
RUN touch /rootfs/etc/os-release
|
||||||
RUN mkdir -pv /rootfs/{boot,usr/local/share,mnt,system}
|
RUN mkdir -pv /rootfs/{boot,usr/local/share,mnt,system,opt}
|
||||||
RUN mkdir -pv /rootfs/{etc/kubernetes/manifests,etc/cni,usr/libexec/kubernetes}
|
RUN mkdir -pv /rootfs/{etc/kubernetes/manifests,etc/cni/net.d,usr/libexec/kubernetes}
|
||||||
|
RUN mkdir -pv /rootfs/opt/{containerd/bin,containerd/lib}
|
||||||
RUN ln -s /etc/ssl /rootfs/etc/pki
|
RUN ln -s /etc/ssl /rootfs/etc/pki
|
||||||
RUN ln -s /etc/ssl /rootfs/usr/share/ca-certificates
|
RUN ln -s /etc/ssl /rootfs/usr/share/ca-certificates
|
||||||
RUN ln -s /etc/ssl /rootfs/usr/local/share/ca-certificates
|
RUN ln -s /etc/ssl /rootfs/usr/local/share/ca-certificates
|
||||||
@ -394,12 +396,14 @@ COPY --from=machined-build-arm64 /machined /rootfs/sbin/init
|
|||||||
# symlinks to avoid accidentally cleaning them up.
|
# symlinks to avoid accidentally cleaning them up.
|
||||||
COPY ./hack/cleanup.sh /toolchain/bin/cleanup.sh
|
COPY ./hack/cleanup.sh /toolchain/bin/cleanup.sh
|
||||||
RUN cleanup.sh /rootfs
|
RUN cleanup.sh /rootfs
|
||||||
COPY --chmod=0644 hack/containerd.toml /rootfs/etc/cri/containerd.toml
|
COPY --chmod=0644 hack/containerd.toml /rootfs/etc/containerd/containerd.toml
|
||||||
|
COPY --chmod=0644 hack/cri-containerd.toml /rootfs/etc/cri/containerd.toml
|
||||||
RUN touch /rootfs/etc/resolv.conf
|
RUN touch /rootfs/etc/resolv.conf
|
||||||
RUN touch /rootfs/etc/hosts
|
RUN touch /rootfs/etc/hosts
|
||||||
RUN touch /rootfs/etc/os-release
|
RUN touch /rootfs/etc/os-release
|
||||||
RUN mkdir -pv /rootfs/{boot,usr/local/share,mnt,system}
|
RUN mkdir -pv /rootfs/{boot,usr/local/share,mnt,system,opt}
|
||||||
RUN mkdir -pv /rootfs/{etc/kubernetes/manifests,etc/cni,usr/libexec/kubernetes}
|
RUN mkdir -pv /rootfs/{etc/kubernetes/manifests,etc/cni/net.d,usr/libexec/kubernetes}
|
||||||
|
RUN mkdir -pv /rootfs/opt/{containerd/bin,containerd/lib}
|
||||||
RUN ln -s /etc/ssl /rootfs/etc/pki
|
RUN ln -s /etc/ssl /rootfs/etc/pki
|
||||||
RUN ln -s /etc/ssl /rootfs/usr/share/ca-certificates
|
RUN ln -s /etc/ssl /rootfs/usr/share/ca-certificates
|
||||||
RUN ln -s /etc/ssl /rootfs/usr/local/share/ca-certificates
|
RUN ln -s /etc/ssl /rootfs/usr/local/share/ca-certificates
|
||||||
|
@ -1,12 +1,10 @@
|
|||||||
version = 2
|
version = 2
|
||||||
|
|
||||||
disabled_plugins = ["io.containerd.snapshotter.v1.aufs", "io.containerd.v1.zfs", "io.containerd.snapshotter.v1.zfs", "io.containerd.v1.devmapper", "io.containerd.snapshotter.v1.devmapper", "io.containerd.snapshotter.v1.btrfs"]
|
disabled_plugins = [
|
||||||
|
"io.containerd.grpc.v1.cri",
|
||||||
imports = ["/var/cri/conf.d/*.toml"]
|
"io.containerd.internal.v1.opt",
|
||||||
|
]
|
||||||
|
|
||||||
[debug]
|
[debug]
|
||||||
level = "info"
|
level = "info"
|
||||||
format = "json"
|
format = "json"
|
||||||
|
|
||||||
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
|
|
||||||
runtime_type = "io.containerd.runc.v2"
|
|
||||||
|
12
hack/cri-containerd.toml
Normal file
12
hack/cri-containerd.toml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
version = 2
|
||||||
|
|
||||||
|
disabled_plugins = []
|
||||||
|
|
||||||
|
imports = ["/var/cri/conf.d/*.toml"]
|
||||||
|
|
||||||
|
[debug]
|
||||||
|
level = "info"
|
||||||
|
format = "json"
|
||||||
|
|
||||||
|
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
|
||||||
|
runtime_type = "io.containerd.runc.v2"
|
@ -58,9 +58,12 @@ func (c *Containerd) Runner(r runtime.Runtime) (runner.Runner, error) {
|
|||||||
ID: c.ID(r),
|
ID: c.ID(r),
|
||||||
ProcessArgs: []string{
|
ProcessArgs: []string{
|
||||||
"/bin/containerd",
|
"/bin/containerd",
|
||||||
"--address", constants.SystemContainerdAddress,
|
"--address",
|
||||||
"--state", filepath.Join(constants.SystemRunPath, "containerd"),
|
constants.SystemContainerdAddress,
|
||||||
"--root", filepath.Join(constants.SystemVarPath, "lib", "containerd"),
|
"--state",
|
||||||
|
filepath.Join(constants.SystemRunPath, "containerd"),
|
||||||
|
"--root",
|
||||||
|
filepath.Join(constants.SystemVarPath, "lib", "containerd"),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user