This message was deleted.
# k3s
a
This message was deleted.
m
you shouldn't need to do that by default if you just open the port 6443 in your firewall since this is only needed to communicate with the nodes you should have your kuster at "yourip or dns" port 6443 is just for communicating with the other nodes managed by your control node also you just need to open it on your master node to my knowledge
since i am using ufw i just had to do
Copy code
sudo ufw allow 6443/tcp
on the master node and that was it
in case iof firewalld use
Copy code
sudo firewalld-cmd --zone=public --add-port=6443/tcp --permanent
and if you use iptables :
Copy code
sudo iptables -I INPUT -p tcp --dport 6443 -J ACCEPT
a
Thank you @melodic-school-41947,this is helpful. This solves a part of my problem. Another part is how to modify the default kubeconfig file during installation?Is it possible?
m
so the rancher is looking for the config in i think ./kube/config while the actual config is at /etc/rancher/k3s/k3s.yaml i guess