I have a question regarding this question in the CKA Networking - Exploring Environment practice test :
The question is “What is the port the kube-scheduler is listening on in the master node?”
when i run
controlplane $ netstat -natpul | grep -i sch
i get this output
tcp 0 0 127.0.0.1:10259 0.0.0.0:* LISTEN 2519/kube-scheduler tcp 0 0 172.17.0.34:54836 172.17.0.34:6443 ESTABLISHED 2519/kube-scheduler tcp 0 0 172.17.0.34:55036 172.17.0.34:6443 ESTABLISHED 2519/kube-scheduler tcp6 0 0 :::10251 :::* LISTEN 2519/kube-scheduler
why is the correct answer is 10251 now i can see that there is 2 listens here! more specific is the 127.0.0.1:10259 because we route the traffic from 10251 in the master node to 10259 or is there any other reason ?
thanks in advance