Hello every one! Have been trying to search how to...
# k3s
b
Hello every one! Have been trying to search how to setup a static route on rancher on a the worker nodes without any success, any one knows a guide or know how to do it? The reason I need this, is the worker machine it self, I could add one so the worker could reach a PC outside the network, but on the worker pod's they can only access the pc's inside the same network of the worker node
b
Are you using elemental? Cloud Image on a VM? stand alone host?
b
Stand alone host, on k3s Have a master node and a worker node (still learning k3s)
b
I think you just need to set the routes on the OS level and k3s should grok the rest
b
It does have From the worker I can ping without any issue (after adding the static route on the worker machine), but from the pod inside that worker I can't
b
You re-deploy all the cni/network related pods after adding the route?
b
Humm don't think, did have some time to get back to k3s project 11 days ago I will recreate the pod again to see if it will work
b
You should be able to
rollout
a new deployment or if you kill a pod the deployment or daemonset will create a new one automagically.
b
Ty Going to try that now
Done Ya got the same error Can't connect to the SQLServer that is on another network, but from the worker machine I can open the connection to the SQLServer
b
I'm not sure that's a good test
Firewall rules could be messing with it.
I'd start by trying to ping public IPs through the route.
(1.1.1.1 or 8.8.8.8)
b
Don't have any FW on But from the pod I can ping for example google, or other PC's on the same network (the PC where the master is for example, or another PC that is to report the error's since I have a method on the API to send all error's to that machine)
b
If you can get out to google, then the route is working and I think it's db connection issue
could be grants, fw, etc
b
Just can't reach pc's outside of the network For example The master, the PC to take care of the logs are all inside the network 10.65.130.x and can ping them all from pod The one that has the sql is on the subnet 10.65.145.x Nop should not be the DBConnection, since I can't ping any PC inside the 10.65.145.x network from the pod But from the worker machine I can ping or connect to the Sql server
Bu't can't from the pods that are inside of that worker But on the worker machine I was having that problem, but after adding the static route on the worker machine I could start pinging or connect to the SQLServer, but still can't from the pods