<p>I have minikube installation on my machine for some testing that requires Basic Auth,</p>

<p>How can I enable it for all services I'll create in future?</p>

kagarlickij
<p>If you mean for the Kubernetes API services then that can be enabled in minikube with a CSV file - <a href="https://kubernetes.io/docs/reference/access-authn-authz/authentication/#static-password-file" rel="nofollow noreferrer">https://kubernetes.io/docs/reference/access-authn-authz/authentication/#static-password-file</a> </p>

<p>(though some seem to have found this tricky on Windows <a href="https://github.com/kubernetes/minikube/issues/1898" rel="nofollow noreferrer">https://github.com/kubernetes/minikube/issues/1898</a> ). </p>

<p>If you mean for services you are writing and deploying to Kubernetes then I think that's not something that the Kubernetes platform would currently provide for you out of the box. </p>

<p>It would be open to you to use an authentication feature in an ingress controller (the nginx one for example) or to use Istio or, depending on your use-case, you might well choose to do it in your code. </p>
