k3s specifies the init command in /etc/systemd/system/k3s.service. (k3s-agent.service if installed as agent) usually it is k3s server.
you need to change it to k3s agent in order to join the master node, or pass additional environment variables K3S_URL=https://<node_ip>:6443 and K3S_TOKEN=<node-token> while running k3s installation script.
the node token is at /var/lib/rancher/k3s/server/node-token
the agent node still needs to configure registry mirrors at /etc/rancher/k3s/registries.yaml for successfully pulling images
k3sup can automatically install k3s cluster using ssh connection
from kubernetes import client, config # Configs can be set in Configuration class directly or using helper utility config_path = ... config.load_kube_config(config_path) v1 = client.CoreV1Api() print("Listing pods with their IPs:") ret = v1.list_pod_for_all_namespaces(watch=False) for i in ret.items: print("%s\t%s\t%s" % (i.status.pod_ip, i.metadata.namespace, i.metadata.name))