apiVersion: v1 data: use-forwarded-headers: 'true' # 主要配置 proxy-real-ip-cidr: 0.0.0.0/0 # 备选 kind: ConfigMap metadata: annotations: {} labels:
以v1.28.14+k3s1为例 一、准备机器 master:192.168.5.200 worker:192.168.5.200 修改hostname hostnamectl set-hostname <hostname> 关闭防火墙 systemctl stop firewalld sy
Contianerd作为容器 ctr -n k8s.io image pull registry.cn-hangzhou.aliyuncs.com/google_containers/pause:3.6 && ctr -n k8s.io image tag registry.cn-hangzhou.
skopeo copy --src-creds {源账号}:{源密码} --dest-creds {目的账号}:{目的密码} docker://registry.cn-hangzhou.aliyuncs.com/${image_src} docker://registry.cn-hangzhou.
中国镜像安装 curl -sfL https://rancher-mirror.rancher.cn/k3s/k3s-install.sh | INSTALL_K3S_MIRROR=cn sh - 用docker作为容器 curl -sfL https://rancher-mirror.ranche