Helm V3 - 找不到官方回购
Helm V3 - Cannot find the official repo
我一直在尝试使用 helm 版本 3 安装 nginx ingress
helm install my-ingress stable/nginx-ingress
但是 Helm 似乎无法找到它的官方 stable
存储库。它给出了消息:
Error: failed to download "stable/nginx-ingress" (hint: running helm
repo update
may help)
我试过了helm repo update
。但是没用。
我尝试列出存储库 helm repo list
但它是空的。
我尝试添加稳定的回购:
helm repo add stable https://github.com/helm/charts/tree/master/stable
但它失败了:
Error: looks like "https://github.com/helm/charts/tree/master/stable"
is not a valid chart repository or cannot be reached: failed to fetch
https://github.com/helm/charts/tree/master/stable/index.yaml : 404 Not
Found
stable
存储库托管在 https://kubernetes-charts.storage.googleapis.com/ 上。因此,请尝试以下操作:
helm repo add stable https://kubernetes-charts.storage.googleapis.com/
编辑 2020-11-16: 上面的存储库似乎是 deprecated。现在应该可以使用以下内容:
helm repo add stable https://charts.helm.sh/stable
请注意,Helm v3 没有使用 Tiller。
1.安装 Helm v3:
curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 > get_helm.sh
chmod 700 get_helm.sh
./get_helm.sh
2。安装 Ingress-Nginx:
helm repo add stable https://kubernetes-charts.storage.googleapis.com/
helm install my-nginx stable/nginx-ingress --set rbac.create=true
稳定的存储库在 helm hub https://hub.helm.sh/charts
为 nginx ingress 安装 nginx chart
helm install bitnami/nginx --version 6.2.0
在撰写此答案时,none 之前的评论对我有用。我想分享对我有用的方法,以防其他人处于相同情况:
helm repo add nginx-stable https://helm.nginx.com/stable
helm repo update
helm install my-nginx nginx-stable/nginx-ingress --set rbac.create=true
如果这不起作用,请尝试搜索新图表并使用更新后的名称(以防更改)
helm search repo nginx
以下解决方案对我有用。
# Below command is not working
$ helm repo add stable https://kubernetes-charts.storage.googleapis.com/
Error: repo "https://kubernetes-charts.storage.googleapis.com/" is no longer available; try "https://charts.helm.sh/stable" instead
#Try this one, it's wokring.
$ helm repo add stable https://charts.helm.sh/stable
"stable" has been added to your repositories
On November 13, 2020 the stable and incubator charts repository will
reach the end of development and become archives. You can find that
many of the charts have moved to other, community managed,
repositories. You can discover these on the Artifact Hub.
通过搜索 the Artifact Hub 发现图表的最佳方式。如果你从 ORG Helm select nginx-ingress
,你可以看到添加 repo 的说明。
helm repo add nginx-stable https://helm.nginx.com/stable
我一直在尝试使用 helm 版本 3 安装 nginx ingress
helm install my-ingress stable/nginx-ingress
但是 Helm 似乎无法找到它的官方 stable
存储库。它给出了消息:
Error: failed to download "stable/nginx-ingress" (hint: running
helm repo update
may help)
我试过了helm repo update
。但是没用。
我尝试列出存储库 helm repo list
但它是空的。
我尝试添加稳定的回购:
helm repo add stable https://github.com/helm/charts/tree/master/stable
但它失败了:
Error: looks like "https://github.com/helm/charts/tree/master/stable" is not a valid chart repository or cannot be reached: failed to fetch https://github.com/helm/charts/tree/master/stable/index.yaml : 404 Not Found
stable
存储库托管在 https://kubernetes-charts.storage.googleapis.com/ 上。因此,请尝试以下操作:
helm repo add stable https://kubernetes-charts.storage.googleapis.com/
编辑 2020-11-16: 上面的存储库似乎是 deprecated。现在应该可以使用以下内容:
helm repo add stable https://charts.helm.sh/stable
请注意,Helm v3 没有使用 Tiller。
1.安装 Helm v3:
curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 > get_helm.sh
chmod 700 get_helm.sh
./get_helm.sh
2。安装 Ingress-Nginx:
helm repo add stable https://kubernetes-charts.storage.googleapis.com/
helm install my-nginx stable/nginx-ingress --set rbac.create=true
稳定的存储库在 helm hub https://hub.helm.sh/charts
为 nginx ingress 安装 nginx chart
helm install bitnami/nginx --version 6.2.0
在撰写此答案时,none 之前的评论对我有用。我想分享对我有用的方法,以防其他人处于相同情况:
helm repo add nginx-stable https://helm.nginx.com/stable
helm repo update
helm install my-nginx nginx-stable/nginx-ingress --set rbac.create=true
如果这不起作用,请尝试搜索新图表并使用更新后的名称(以防更改)
helm search repo nginx
以下解决方案对我有用。
# Below command is not working
$ helm repo add stable https://kubernetes-charts.storage.googleapis.com/
Error: repo "https://kubernetes-charts.storage.googleapis.com/" is no longer available; try "https://charts.helm.sh/stable" instead
#Try this one, it's wokring.
$ helm repo add stable https://charts.helm.sh/stable
"stable" has been added to your repositories
On November 13, 2020 the stable and incubator charts repository will reach the end of development and become archives. You can find that many of the charts have moved to other, community managed, repositories. You can discover these on the Artifact Hub.
通过搜索 the Artifact Hub 发现图表的最佳方式。如果你从 ORG Helm select nginx-ingress
,你可以看到添加 repo 的说明。
helm repo add nginx-stable https://helm.nginx.com/stable