Kubernetes CKA sample exam question 62 with answer

Question
You're asked to find out following information about the cluster:

  1. How many master nodes are available?
  2. How many worker nodes are available?
  3. What is the Service CIDR?
  4. Which Networking (or CNI Plugin) is configured and where is its config file?
  5. Which suffix will static pods have that run on cluster1-worker1
Write your answers into file /opt/course/14/cluster-info structured like this:
# cat /opt/course/14/cluster-info
1. [ANSWER]
2. [ANSWER]
3. [ANSWER]
4. [ANSWER]
5. [ANSWER]
Answer
For question 1 and 2 issue:
kubectl get nodes
For question 3:
kubectl -n kube-system get po kube-apiserver-cluster1-master1 -o yaml|grep -i service
check for --service-cluster-ip-range
For question 4 - ssh to master node and execute:
ls -la /etc/cni/net.d/
the output is the file 10-weave.conflist. Display this file:
cat /etc/cni/net.d/10-weave.conflist
you can notice that this is weave CNI plugin.
Question 5 is obvious, the suffix will be:
cluster1-worker1
So the file /opt/course/14/cluster-info will look like this:
1. [1]
2. [2]
3. [10.96.0.0/12]
4. [weave /etc/cni/net.d/10-weave.conflist]
5. [-cluster1-worker1]