<p>I need to set in Nginx ingress controller the conf.d file.
The fields that I need to change is ssl_certificate and ssl_certificate_key.</p>

<p>I will be happy for yaml example.</p>

Oron Golan
<p>You can set these fields with configuration parameters of Nginx ingress controller.</p>

<p>There is a nginx ingress controller <a href="https://kubernetes.github.io/ingress-nginx/user-guide/cli-arguments/" rel="nofollow noreferrer">argument</a> to do this:</p>

<pre><code>--default-ssl-certificate: namespace/tls-secret
</code></pre>

<p>This sets a default certificate in case the ingress resource doesn't specify one.</p>

<p>Also you can set a tls secret per ingress resource:</p>

<pre><code>spec:
  tls:
  - hosts:
    - my.host.com
    secretName: tls-secret
</code></pre>

<p>Both those solutions sets <code>ssl_certificate</code> and <code>ssl_certificate_key</code> in the nginx config</p>
