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.crt
but I can't find it in the installation with docker?
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