Solution Explore Environment
- How to find the interface configured for cluster connectivity:
- Run this command to see IP addresses assigned to nodes:
kubectl get nodes -o wide - Then for network interfaces, don’t over-complicate it, its
ip a. - Default interface for
containerdiscni0 - Command to find the default gateway:
ip route show default - How to find the port that the
kubescheduleris running on:netstat -nplt | grep scheduler - An example of the
netstatcommand output:tcp 0 0 127.0.0.1:10259 0.0.0.0:* LISTEN 3200/kube-scheduler - Here the port that is being listened on is the third one in.
- How to find which ports the
etcd-serveris listening on:netstat -anp | grep etcd | grep 2380 | wc -l - The same is also for:
netstat -anp | grep etcd | grep 2379 | wc -l 81 - Port
2379is the one inetcd-serverthat everything connects to.