CKA_Troubleshooting - Networking

Issue: Regarding the solution for the Question#2 in Troubleshooting - Networking area

Details: It was mentioned in the solution that the config file for the daemonset kube-proxy should be set same as like the configmap kube-proxy under kube-system namespace
but, it was mentioned as /var/lib/kube-proxy/kubeconfig.conf for configmap and while updating the same for daemonset, its not working instead working only when updated as /var/lib/kube-proxy/config.conf
Please suggest here if the configmap file path needs to be changed or suggest me the correct path where daemonset should refer for the mount path

Hello @vissapragada2016,
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.

this is the config filename config.conf and this its content

apiVersion: 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

Thanks so much for the explanation in detail to understand better. Appreciated!!