|
|
5 år sedan | |
|---|---|---|
| .. | ||
| README.md | 5 år sedan | |
| agent-install.sh | 5 år sedan | |
| install.sh | 5 år sedan | |
| k3s | 5 år sedan | |
| k3s-airgap-images-amd64.tar | 5 år sedan | |
| master-install.sh | 5 år sedan | |
| nfs-install.sh | 5 år sedan | |
| node-token | 5 år sedan | |
| uninstall.sh | 5 år sedan | |
if you reinstall agent, you must copy password from master and paste it to /var/lib/rancher/k3s/agent/node-password.txt. the password is from /var/lib/rancher/k3s/server/cred/passwd in master server
if you want to run "sudo kubectl get nodes" in agent, you must copy k3s.yaml(in /etc/rancher/k3s) from master and paste it to /etc/rancher/k3s/ in master
K3S_TOKEN is the content of /var/lib/rancher/k3s/server/node-token in master
if you set the nodename of agent, you must add ip nodename(such as 127.0.0.1 node-1) to /etc/hosts