Files
k8s-docs/k8s/xiongxiao.me
2026-01-14 11:48:02 +08:00
..
2026-01-14 11:48:02 +08:00
2025-12-25 00:05:18 +08:00
2025-11-26 15:44:15 +08:00
2025-12-25 00:05:18 +08:00
2025-11-27 01:35:58 +08:00
2025-11-27 12:51:11 +08:00
2025-11-27 01:35:58 +08:00
2025-12-25 00:05:18 +08:00
2025-11-26 21:00:50 +08:00
2025-11-26 17:02:14 +08:00
2025-11-27 12:51:11 +08:00

k3 安装大纲

  • 安装 k3s
  • agent k3s 节点加入集群
  • 设置节点 label

配置国内源

禁用默认的traefik

vim /etc/rancher/k3s/config.yaml 
# 添加以下内容禁用默认traefik
disable: traefik
# 重启k3s服务
systemctl restart k3s

# 删除默认traefik相关资源
kubectl delete job -n kube-system helm-install-traefik helm-install-traefik-crd

# 安装 Traefik CRD
kubectl apply -f https://raw.githubusercontent.com/traefik/traefik/v3.0/docs/content/reference/dynamic-configuration/kubernetes-crd-definition-v1.yml