No description
| README.md | ||
k3s-node
Add "cgroup_enable=cpuset cgroup_enable=memory cgroup_memory=1 swapaccount=1" to the end of /boot/firmware/cmdline.txt.
Install log2ram and rsync.
k3s Installation
To install the first server node run the following command:
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=<K3S_VERSION> sh -s - server --cluster-init
To install further server nodes run:
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=<K3S_VERSION> K3S_TOKEN=<K3S_TOKEN> sh -s server --server https://<SERVER_IP>:6443
The K3S_TOKEN can be found under /var/lib/rancher/k3s/server/node-token on the initial master node.
Agent nodes can be added by:
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=<K3S_VERSION> K3S_URL=https://<SERVER_IP>:6443 K3S_TOKEN=<K3S_TOKEN> sh -
k3s Upgrade
k3s is upgraded to a specific version with:
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=<K3S_VERSION> sh -s server
Longhorn
Disk to be used by Longhorn should be mounted to /var/lib/longhorn. Install dependencies required by Longhorn on each node:
apt-get install -y open-iscsi e2fsprogs xfsprogs lvm2
Rancher
Rancher can be installed or upgraded via following helm commands:
helm repo add rancher-stable https://releases.rancher.com/server-charts/stable
helm repo update
helm upgrade --install rancher rancher-stable/rancher --namespace cattle-system --set hostname=<HOSTNAME> --set bootstrapPassword=<SECRET> --set ingress.tls.source=letsEncrypt --set letsEncrypt.email=<EMAIL> --set letsEncrypt.ingress.class=traefik