<h1>How can I add stable/nginx-ingress as a dependency to my custom helm chart?</h1>

<p>After trying a few different urls for the repository, I still have no luck. </p>

<p>Steps</p>

<ol>
<li>Created a new helm chart with helm create and editing the <code>Chart.yaml</code> to be</li>
</ol>

<pre class="lang-yaml prettyprint-override"><code>apiVersion: v2
name: acme
description: A Helm chart for Kubernetes
type: application
version: 0.1.0
appVersion: 1.16.0
icon: https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png

dependencies:
  - name: stable/nginx-ingress
    version: ~1.34
    repository: https://kubernetes-charts.storage.googleapis.com
</code></pre>

<ol start="2">
<li>Executed this command <code>helm dep update acme</code></li>
</ol>

<p>The output is the following</p>

<p><code>Error: stable/nginx-ingress chart not found in repo https://kubernetes-charts.storage.googleapis.com</code></p>

<p><strong>Note</strong>  </p>

<p>I have seen these Stack Overflow questions, but the answers were lacking explanation: </p>

<ul>
<li><a href="https://stackoverflow.com/questions/57970255/helm-v3-cannot-find-the-official-repo">Helm V3 - Cannot find the official repo</a>  </li>
<li><a href="https://stackoverflow.com/questions/59454550/adding-nginx-ingress-certmanager-as-dependency-in-helm-charts">Adding Nginx-Ingress/Certmanager as Dependency in Helm Charts</a></li>
</ul>

<p>This question is not intended to be a duplicate. I'm not using Azure and I am using Helm 3.</p>

<p>The updated chart for helm3 is <a href="https://kubernetes.github.io/ingress-nginx/deploy/#using-helm" rel="nofollow noreferrer">ready to use</a>. </p>

<blockquote>
<pre><code>helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
helm install my-release ingress-nginx/ingress-nginx
</code></pre>
</blockquote>

<hr>

<h3>Original</h3>

<p>The <a href="https://github.com/kubernetes/ingress-nginx/tree/master/charts/ingress-nginx" rel="nofollow noreferrer">nginx-ingress chart</a> is not published there yet. The progress is being tracked in <a href="https://github.com/kubernetes/ingress-nginx/issues/5161" rel="nofollow noreferrer">kubernetes/ingress-nginx#5161</a>. </p>

<p>If you want to use the old chart you will need either a copy of the chart locally, or a version of the chart published to your own repo. For the local file dependency, get a copy of the current chart:</p>

<pre><code>git clone https://github.com/helm/charts.git
cp -r charts/stable/nginx-ingress /path/to/acmes-parent-dir/
</code></pre>

<p>Then you can use a relative reference to the local directory:</p>

<pre><code>dependencies:
- name: nginx-ingress
  version: "1.34"
  repository: "file://../nginx-ingress"
</code></pre>
