$ curl -sfL https://get.k3s.io | sh - $ curl -sfL https://get.k3s.io > install-script.sh chmod +x install-script.sh ./install-script.sh $ kubectl get pods --all-namespaces $ kubectl get nodes NAME STATUS ROLES AGE VERSION kilo Ready master 15m v1.16.3-k3s.2 $ kubectl get events --all-namespaces $ systemctl status k3s iptables --nvL $ systemctl status firewalld $ systemctl stop firewalld $ kubectl apply -f https://k8s.io/examples/admin/dns/busybox.yaml pod/busybox created apiVersion: v1 kind: Pod metadata: name: busybox namespace: default spec: containers: - name: busybox image: busybox:1.28 command: - sleep - "3600" imagePullPolicy: IfNotPresent restartPolicy: Always $ k3s agent --server https://${MASTER}:6443 --token ${TOKEN} $ curl -sfL https://get.k3s.io | K3S_URL=https://${MASTER}:6443 TOKEN=${TOKEN} sh - $ curl -sfL https://get.k3s.io | sh - $ cat /var/lib/rancher/k3s/server/node-token K10fc63f5c9923fc0b5b377cac1432ca2a4daa0b8ebb2ed1df6c2b63df13b092002::server:bf7e806276f76d4bc00fdbf1b27ab921 $ ip a $ ssh -i k3s-key.pem ubuntu@34.XXX.XXX.XXX # Agent node over public IP address $ export MASTER="172.30.2.181" # Private IP Address $ export TOKEN="K10fc63f5c9923fc0b5b377cac1432ca2a4daa0b8ebb2ed1df6c2b63df13b092002::server:bf7e806276f76d4bc00fdbf1b27ab921" $ curl -sfL https://get.k3s.io | K3S_URL=https://${MASTER}:6443 K3S_TOKEN=${TOKEN} sh - $ k3s agent -u ${MASTER} --token ${TOKEN} --docker &