sealer
sealer copied to clipboard
[Feature] k3s runtime design
Issue Description
Support k3s cluster installation. Type: feature request
Describe what feature you want
step
- Deploy the private mirror registry (ref: https://docs.rancher.cn/docs/k3s/installation/airgap/_index) a. Distribute the k3s configuration to connect to private registry. (ref: https://docs.rancher.cn/docs/k3s/installation/private-registry/_index)
- Get k3s binary and move to /usr/local/bin or /usr/bin.
- Get k3s-install script from https://get.k3s.io/ (this would be contained by rootfs).
- Install k3s offline on master0 as a server (not HA cluster).
- Joining k3s agent and sever use k3s-install script.
- Using scripts to delete node (ref: https://docs.rancher.cn/docs/k3s/installation/uninstall/_index). To force delete need to exec k3s-killall.sh. (ref: https://docs.rancher.cn/docs/k3s/upgrades/killall/_index)
- Upgrades need to follow basic upgrade, upgrade from sever node one by one! (ref: https://docs.rancher.cn/docs/k3s/upgrades/basic/_index)
rootfs
.
├── bin
│ ├── conntrack
│ ├── containerd-rootless-setuptool.sh
│ ├── containerd-rootless.sh
│ ├── crictl
│ ├── k3s
│ ├── kubectl
│ ├── nerdctl
│ └── seautil
├── cri
│ └── docker.tar.gz
├── custom-resources.yaml
├── etc
│ ├── registries.yaml
│ ├── daemon.json
│ ├── docker.service
│ ├── k3s.yaml
│ └── registry_config.yml
├── images
│ └── docker-amd64-registry-image.tar.gz
├── Kubefile
├── lib
│ ├── gperf-3.1.tar.gz
│ ├── install_libseccomp.sh
│ └── libseccomp-2.5.4.tar.gz
├── manifests
│ └── imageList
└── scripts
├── docker.sh
├── k3s-install.sh
├── init-registry.sh
└── uninstall-docker.sh
Additional context
Add any other context or screenshots about the feature request here.