Networking Flashcards

1
Q

What linux command will show you the ports that a service is listening on?

A

netstat -nplt

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What linux command shows the connections to a port?

A

netstat -anp | grep etcd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the default port for the kube-api service?

A

6443

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the default port for the kube-scheduler?

A

10259

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the default port for the kube-controller-manager?

A

10257

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the default port for the etcd server?

A

2379

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the default port for the etcd server communications on multiple master nodes?

A

2380

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What port does the kubelet listen to on each node?

A

10250

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What port do the workder nodes listen to for services?

A

30000-32767

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What service configures the CNI?

A

kubelet

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the linux command to check the kubelet config?

A

ps -aux | grep kubelet

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How would you check for CNI plugins?

A

ps -aux | grep kubelet
ls <path></path>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How would you check the CNI config?

A

ls /etc/cni/net.d

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What path does CNI store it’s plugins?

A

/opt/cni/bin

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the directory where CoreDNS stores it’s config file?

A

/etc/coredns/Corefile

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How is the Corefile passed into the CoreDNS POD?

A

The conf file is passed to the nodes as a configmap object kubectl get configmap -n kube-system

17
Q

What is the command to get ingresses?

A

k get ingress

*Generally you would want to specify -A for all namespaces