Hi everyone!, One Doubt about troubeshoot network practice Question kubectl -n . . .

Kunal Sharma:
Hi everyone!, One Doubt about troubeshoot network practice Question

kubectl -n kube-system describe configmap kube-proxy shows that the file name used is config.conf---- I am little confused about this statement
If I check the cm I see config.conf data and I don’t the the reference of the name mentioned in the solution

Mohamed Ayman:
Hello @Kunal Sharma,
Check the logs of the kube-proxy pods kubectl -n kube-system logs <name_of_the_kube_proxy_pod>
You will face an entry says “open /var/lib/kube-proxy/configuration.conf: no such file or directory”.
If you describe the kube-proxy daemonset to see the mounts, you will see that the data is stored in a ConfigMap and referenced in a volume type.
Kindly check the attached screenshot to see config.conf that is used in the kube-proxy daemon set.

And this its content

 apiVersion: <http://kubeproxy.config.k8s.io/v1alpha1|kubeproxy.config.k8s.io/v1alpha1>
 bindAddress: 0.0.0.0
 bindAddressHardFail: false
 clientConnection:
 acceptContentTypes: ""
 burst: 0
 contentType: ""
 kubeconfig: /var/lib/kube-proxy/kubeconfig.conf
 qps: 0
 clusterCIDR: 10.244.0.0/16
 configSyncPeriod: 0s

Kunal Sharma:
Thanks MAyman. Got it. Thanks for all your help

Mohamed Ayman:
You are welcome.
Happy learning!