<p>To use <code>nginx.ingress.kubernetes.io/ssl-passthrough</code> annotation I need to be <a href="https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/#ssl-passthrough" rel="nofollow noreferrer"><code>starting the controller with the --enable-ssl-passthrough flag.</code></a></p>

<p>How do I pass that flag if I start the ingress with <code>minikube addons enable ingress</code>?</p>

<p>I tried <code>minikube addons enable ingress --enable-ssl-passthrough</code> and got <code>Error: unknown flag: --enable-ssl-passthrough</code></p>

Kirill Kliushkin
<p>I don't think there is an easy way to change it. But you can always manually change the ingress controller deployment object so that it passes the arguments that you need. For example, <a href="https://github.com/ajanthan/minikube-ingress-with-ssl-passthrough/" rel="nofollow noreferrer">in this repository</a> someone has the Kubernetes manifests for the minikube ingress addon.</p>

<p><a href="https://github.com/ajanthan/minikube-ingress-with-ssl-passthrough/blob/3969487fc08dad5a2638afe7c9e238ca02875083/ingress-dp.yaml#L131" rel="nofollow noreferrer">If you take a look</a>, this is where the <code>--enable-ssl-passthrough</code> option is passed to the ingress controller. You just need to update your Deployment the same way.</p>

<p>I believe that minikube installs the ingress controller deployment on the <code>kube-system</code> namespace, so try listing the deployments there using <code>kubectl -n kube-system get deployments</code>. And update the right deployment object using <code>kubectl -n kube-system edit deployments &lt;ingress-deployment-name&gt;</code>, changing <code>ingress-deployment-name</code> with whatever name it's using on your case.</p>
