How do i connect docker pipeline on jenkins to kubernetes cluster
Maybe it is strange solution, but I would like to provide it to you:

You can get actual kubeconfig file from your Kubernetes cluster or locally and change it to base64 format like in example below:

- cat /root/.kube/config | base 64


Then use your base64 configuration file in pipeline:

- echo $your_variable | base64 -d | tee /root/.kube/config


In such case you will be having actual kubeconfig file on runner machine.

In case of DNS problem - just need to specify IP address of your runner machine in /etc/resolv.conf file.