Skip to content

Commit a1bf0cc

Browse files
committed
Add shell commands for finding out the token
Signed-off-by: Anders F Björklund <[email protected]>
1 parent be91928 commit a1bf0cc

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

examples/k3s.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ provision:
4242
#!/bin/sh
4343
# To install a worker node, fill in and uncomment this line:
4444
#export K3S_TOKEN=xxx K3S_URL=https://server-url:6443
45+
# To get the token to use for the variable, run this command:
46+
# $ limactl shell k3s sudo cat /var/lib/rancher/k3s/server/node-token
4547
curl -sfL https://get.k3s.io | sh -
4648
4749
probes:

examples/k8s.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ provision:
9898
set -eux -o pipefail
9999
# To install a worker node, fill in and uncomment this line:
100100
#export K8S_URL=server-url:6443 K8S_TOKEN=xxx K8S_HASH=sha256:<hash>
101+
# To get the token to use for the variable, run this command:
102+
# $ limactl shell k8s sudo kubeadm token create --print-join-command
101103
if [ -n "${K8S_TOKEN:-}" ]; then
102104
# WORKER NODE
103105
test -e /etc/kubernetes/kubelet.conf && exit 0

0 commit comments

Comments
 (0)