Where to find ca.crt in docker-for-desktop kubernetes?

7/31/2018

I've installed Kubernetes with docker-for-desktop. Now I want to create a user (following RBAC principle). I'm using private certificates and want to sigh them against the ca.crt of the cluster.

For minikube this ca.crt was in .minikube/ca.crtbut I can't find it in the installation with docker?

-- DenCowboy
ca
docker
kubernetes

1 Answer

7/31/2018

By default, your HyperKit VM doesn't mount volumes locally in docker-for-desktop.

Your best bet is to copy the ca.crt manually to your machine using kubectl cp.

Example:

kubectl cp kube-apiserver-docker-desktop:run/config/pki/ca.crt -n kube-system /tmp/ca.crt
-- jaxxstorm
Source: StackOverflow