ubuntu22安装k3s

ubuntu22.04
1.修改crgoup v1

2.打开内核转发。

3.安装k3s,会自动安装containerd
curl -sfL https://rancher-mirror.rancher.cn/k3s/k3s-install.sh | INSTALL_K3S_VERSION="v1.28.6+k3s2" CATTLE_NEW_SIGNED_CERT_EXPIRATION_DAYS=3650   INSTALL_K3S_MIRROR=cn   sh -s -   --system-default-registry=registry.cn-hangzhou.aliyuncs.com
  • CATTLE_NEW_SIGNED_CERT_EXPIRATION_DAYS 证书的有效期
  • INSTALL_K3S_MIRROR=cn 中国加速安装
  • --system-default-registry=系统组件拉取的仓库地址
posted @ 2026-08-07 11:22  Gshelldon  阅读(2)  评论(0)    收藏  举报