Kubernetes

From PedrosBrainDump
Revision as of 21:47, 18 October 2024 by 413vhcu1lq0463ob (talk | contribs) (Created page with "K3s install curl -sfL <nowiki>https://get.k3s.io</nowiki> | K3S_KUBECONFIG_MODE="644" sh -s - Adding node to the cluster get the token from the master with cat /var/lib/rancher/k3s/server/node-token then to install run curl -sfL <nowiki>https://get.k3s.io</nowiki> | K3S_TOKEN="YOUR TOKEN" K3S_URL="<nowiki>https://yourserver:6443</nowiki>" K3S_NODE_NAME="servername" sh -s -")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

K3s install

curl -sfL https://get.k3s.io | K3S_KUBECONFIG_MODE="644" sh -s - 

Adding node to the cluster

get the token from the master with

cat /var/lib/rancher/k3s/server/node-token

then to install run

curl -sfL https://get.k3s.io | K3S_TOKEN="YOUR TOKEN" K3S_URL="https://yourserver:6443" K3S_NODE_NAME="servername" sh -s -