Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 881 Bytes

KubernetesNodes.org

File metadata and controls

26 lines (22 loc) · 881 Bytes

k3s Node configuration

Checklist

Install and configure node according to general security guidelines.

Fetch the cluster token node from the Master instance:

export K3S_TOKEN="$(ssh -i ~/.ssh/nodes.k8s.local [email protected] -- sudo cat /var/lib/rancher/k3s/server/node-token)"
  1. Launch the node
export NODE_IP=192.168.100.6
export K3S_MASTER_IP=192.168.100.2
ssh -i ~/.ssh/nodes.k8s.local rocky@${NODE_IP} -- "curl -sfL https://get.k3s.io | K3S_URL=https://${K3S_MASTER_IP}:6443 K3S_TOKEN=${K3S_TOKEN} sh -"

Enable cgroup memory

Add the following bit at the end of the /boot/cmdline.txt file.

cgroup_memory=1 cgroup_enable=memory

User managment

-