安装命令:curl -sfL https://rancher-mirror.rancher.cn/k3s/k3s-install.sh | INSTALL_K3S_VERSION=v1.24.10+k3s1 INSTALL_K3S_MIRROR=cn sh -s - --system-default-registry “registry.cn-hangzhou.aliyuncs.com”
安装完成后, K3S单机运行正常:
这个时候, 查看running状态的pod的日志:
kubectl logs -f traefik-b44944bf7 -n kube-system
报错信息:
Error from server: Get “https://10.0.24.10:10250/containerLogs/kube-system/traefik-b44944bf7-nhgz6/traefik?follow=true”: Forbidden