sealer icon indicating copy to clipboard operation
sealer copied to clipboard

[Feature] k3s runtime design

Open starComingup opened this issue 2 years ago • 0 comments

Issue Description

Support k3s cluster installation. Type: feature request

Describe what feature you want

step

  1. 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)
  2. Get k3s binary and move to /usr/local/bin or /usr/bin.
  3. Get k3s-install script from https://get.k3s.io/ (this would be contained by rootfs).
  4. Install k3s offline on master0 as a server (not HA cluster).
  5. Joining k3s agent and sever use k3s-install script.
  6. 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)
  7. 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.

starComingup avatar Jan 15 '23 02:01 starComingup