k3s mounting step
1. Preparations
Close swap swap partition
swapoff -a
Turn off the firewall
systemctl stop firewalld.service
2. Download the package start k3s
https://github.com/rancher/k3s/releases/tag/v0.6.1
Uploaded to the server, empowerment
chmod +x k3s && mv k3s /usr/sbin
Start k3s, master node if there docker, close to docker
k3s server &
View k3s state
k3s kubectl get nodes
After a successful start to acquire token start node to node
Assignment
Start node, note I am using a node by node docker way, so keep docker start
After startup view status
OK, now k3s cluster started successfully.
3. Deploying Applications
Deploy applications under test, ahead of the mirror ready, because the pause mirroring requires FQ download, do not be ready ahead of time, I would have been stuck in the pull images
yaml file written like k8s, direct creation would be finished
References: https://github.com/rancher/k3s