Feature Request: Ability to use a custom TLS certificate with the Ingress addon #9335
Labels
addon/ingress
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
kind/feature
Categorizes issue or PR as related to a new feature.
priority/important-longterm
Important over the long term, but may not be staffed and/or may need multiple releases to complete.
Environment:
Minikube on Mac OS X
What happened:
I am trying to load NGINX-Ingress with a custom tls certificate, in this case a trusted TLS certificate I generated on my machine. I start minikube, then enable the ingress-nginx addon which deploys nginx to the kube-system namespace successfully. I create my certificate in the kube-system namespace with the title
mkcert
.I then modified the nginx deployment to have the arg --default-ssl-certificate=kube-system/mkcert. NGINX restarts, and successfully loads the new certificate as I see this in the logs:
6 backend_ssl.go:66] Adding Secret "kube-system/mkcert" to the local store
I then deploy my application which contains an ingress resource, and the Nginx pods restart. When the pods restart, the deployment somehow removes the
--default-ssl-certificate=kube-system/mkcert
flag and nginx logs show that it is self generating a certificate.When I try to access my application, it's now using the fake certificate.
If I then deploy the real certificate to the cluster after my application is deployed, it works successfully and I can access my application.
What you expected to happen:
The Minikube control loop does not reset the default TLS certificate
Somehow Minikube is resetting the deployment object to its initial state and losing an argument but I have no idea how.
How to reproduce it:
The following steps require mkcert and minikube:
Then deploy a test application to the cluster with an ingress resource and nginx will drop the default certificate.
Is there any interest in making custom TLS certificates possible in Minikube with the ingress add on?
The text was updated successfully, but these errors were encountered: