环境信息:
K3s 版本: v1.21.14+k3s1
节点 CPU 架构、操作系统和版本::
master是x86的 agent是arm64 系统都是ubuntu20.04
集群配置:
1 server 1agent
问题描述:
agent上的svclb-traefik-mm9fh起不来
复现步骤:
- 安装 K3s 的命令:
curl -sfL https://rancher-mirror.oss-cn-beijing.aliyuncs.com/k3s/k3s-install.sh | INSTALL_K3S_MIRROR=cn
INSTALL_K3S_EXEC=“–flannel-backend=host-gw”
INSTALL_K3S_VERSION=v1.21.14+k3s1
K3S_URL=https://192.168.1.106:6443
K3S_TOKEN=devops
sh -s -
–docker --system-default-registry “registry.cn-hangzhou.aliyuncs.com”
预期结果:
kubectl get pods -A
kube-system svclb-traefik-kpz88 2/2 Running
实际结果:
kube-system coredns-79b69bd849-qkbxw 1/1 Running 0 30m
kube-system helm-install-traefik-crd-2pqvp 0/1 Completed 0 30m
kube-system local-path-provisioner-54db69c4b6-8wg7g 1/1 Running 0 30m
kube-system svclb-traefik-kpz88 2/2 Running 0 30m
kube-system helm-install-traefik-wsk68 0/1 Completed 1 30m
kube-system metrics-server-848c4d7648-bvxxv 1/1 Running 0 30m
kube-system traefik-79687485bf-85vg5 1/1 Running 0 30m
kube-system svclb-traefik-mm9fh 0/2 ContainerCreating 0 29m
附加上下文/日志:
日志
Normal Scheduled 37m default-scheduler Successfully assigned kube-system/svclb-traefik-mm9fh to mss
Warning FailedCreatePodSandBox 37m kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "42ebcfd998fbe4559a2faff3c05610b730e23040ad08d9209388a853e5c1f748" network for pod "svclb-traefik-mm9fh": networkPlugin cni failed to set up pod "svclb-traefik-mm9fh_kube-system" network: CNI failed to retrieve network namespace path: cannot find network namespace for the terminated container "42ebcfd998fbe4559a2faff3c05610b730e23040ad08d9209388a853e5c1f748"
Warning FailedCreatePodSandBox 37m kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "cafd4a3e56e5ffdcd8b4aad6599d211d82de28a6d8dd2d369e29596937d4a990" network for pod "svclb-traefik-mm9fh": networkPlugin cni failed to set up pod "svclb-traefik-mm9fh_kube-system" network: failed to Statfs "/proc/45873/ns/net": no such file or directory
Warning FailedCreatePodSandBox 37m kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "839413be5438ed237195e21f0a82d2b0f19427fb824f8fda832b0af7fc2f5b65" network for pod "svclb-traefik-mm9fh": networkPlugin cni failed to set up pod "svclb-traefik-mm9fh_kube-system" network: failed to Statfs "/proc/46022/ns/net": no such file or directory
Warning FailedCreatePodSandBox 37m kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "a5d31f5ec73ec12cb3662e69122dde33efd65f5e42b6771173304242ef065944" network for pod "svclb-traefik-mm9fh": networkPlugin cni failed to set up pod "svclb-traefik-mm9fh_kube-system" network: CNI failed to retrieve network namespace path: cannot find network namespace for the terminated container "a5d31f5ec73ec12cb3662e69122dde33efd65f5e42b6771173304242ef065944"
Warning FailedCreatePodSandBox 37m kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "be0f1085090e98471df4c7fc14ed6d04d8bac4ed763ea81bde4f465604e9c04d" network for pod "svclb-traefik-mm9fh": networkPlugin cni failed to set up pod "svclb-traefik-mm9fh_kube-system" network: CNI failed to retrieve network namespace path: cannot find network namespace for the terminated container "be0f1085090e98471df4c7fc14ed6d04d8bac4ed763ea81bde4f465604e9c04d"
Warning FailedCreatePodSandBox 37m kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "b045b950837a1562c444d30b2edaa53f2bcea09bad9cbcdb052faff05fffbcd0" network for pod "svclb-traefik-mm9fh": networkPlugin cni failed to set up pod "svclb-traefik-mm9fh_kube-system" network: CNI failed to retrieve network namespace path: cannot find network namespace for the terminated container "b045b950837a1562c444d30b2edaa53f2bcea09bad9cbcdb052faff05fffbcd0"