官网
https://docs.rancher.cn/docs/k3s/quick-start/_index
在线安装
1 2 3 4 5 6 7 8
| curl -sfL http://rancher-mirror.cnrancher.com/k3s/k3s-install.sh | INSTALL_K3S_MIRROR=cn sh - cat /var/lib/rancher/k3s/server/node-token
curl -sfL http://rancher-mirror.cnrancher.com/k3s/k3s-install.sh | INSTALL_K3S_MIRROR=cn K3S_URL=https://10.193.2.8:6443 K3S_TOKEN=K103d30bcbca9e48b6c642e0f92af0d656e465527b5929345537ae086b7fa8ea2e4::server:9bc179e5cfb5b8c09eac21c9ce145a58 sh -
vi /etc/rancher/k3s/k3s.yaml
|
Registry安装
1 2 3 4 5 6 7 8
| yum install -y yum-utils yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo yum install docker-ce docker-ce-cli containerd.io service docker start docker run -d -p 5000:5000 --restart=always --name registry registry:2 docker run -d -p 5000:5000 -v /data/registry:/var/lib/registry registry:2
http://10.193.2.11:5000
|
Harbor离线安装
https://cloud.tencent.com/developer/article/1763874