I am attempting to configure a locally installed jenkins instance with the kubernetes plugin enabled, with the details needed to work with the docker-desktop built in single node kubernetes cluster.
I need to get the kubernetes ca certificate for the cluster to configure the jenkins kubernetes plugin but I am not sure how to do so?
When attempting to do this with another setup (A 3 node kubernetes cluster created in WSL2 with Kind) I was able to copy the ca.crt file from the control-plane node, but attempting to do this against the docker desktop kubernetes container fails as;
kubectl cp kube-apiserver-docker-desktop:run/config/pki/ca.crt -n kube-system ca.crt
command terminated with exit code 126
What is the correct way to get the ca cert details from the docker-desktop integrated single node kubernetes cluster?