Closed fmunteanu closed 4 hours ago
After looking closer at the server documentation, adding these values to /etc/rancher/k3s/config.yaml
will expose correctly the services:
kube-controller-manager-arg: bind-address=192.168.4.2
kube-scheduler-arg: bind-address=192.168.4.2
Result:
# ss -tulpn | grep -E '2379|10257|10259'
tcp LISTEN 0 4096 127.0.0.1:2379 0.0.0.0:* users:(("k3s-server",pid=5420,fd=15))
tcp LISTEN 0 4096 192.168.4.2:10259 0.0.0.0:* users:(("k3s-server",pid=5420,fd=220))
tcp LISTEN 0 4096 192.168.4.2:10257 0.0.0.0:* users:(("k3s-server",pid=5420,fd=217))
tcp LISTEN 0 4096 192.168.4.2:2379 0.0.0.0:* users:(("k3s-server",pid=5420,fd=13))
Environmental Info: K3s Version:
Node(s) CPU architecture, OS, and Version:
Cluster Configuration: 3 servers, 5 agents
Describe the bug: My goal is to bind the
kube-controller-manager
andkube-scheduler
ports to an external IP, so services like VictoriaMetrics can properly connect to them. Right now, onlykube-etcd
port 2379 is exposed to192.168.4.2
external IP:Is there a K3s server configuration setting allowing me to the same for 10257 and 10259 ports?
Current server configuration: