Guys need some help on that last lab for Practice Test Troubleshoot Network

Bryan Tanoue:
Guys need some help on that last lab for Practice Test Troubleshoot Network.

Bryan Tanoue:

1. Check the logs of the kube-proxy pods
   kubectl -n kube-system logs <name_of_the_kube_proxy_pod>

2. The configuration file /var/lib/kube-proxy/configuration.conf is not valid. The configuration path does not match the data in the ConfigMap. 
   kubectl -n kube-system describe configmap kube-proxy shows that the file name used is  config.conf which is mounted in the kube-proxy damonset pods at the path /var/lib/kube-proxy/config.conf

3. However in the DaemonSet for kube-proxy, the command used to start the kube-proxy pod makes use of the path /var/lib/kube-proxy/configuration.conf. 

  Correct this path to /var/lib/kube-proxy/config.conf as per the ConfigMap and recreate the kube-proxy pods. 

Bryan Tanoue:
I don’t see the config.conf in my configmap at all. I only see:
kubeconfig: /var/lib/kube-proxy/kubeconfig.conf

Bryan Tanoue:
Or is it just the file name is called config.conf? Maybe I forget that about configmaps way back.

Bryan Tanoue:
I’m having a tough time trying to understand the volume mount of kube-proxy using configmap as the volume but I don’t understand where the path comes from…Maybe I’m just really confused.

Tharanath:
You need to check the configmap data

Tharanath:

1 Like