问题描述
我有一个问题.我正在尝试使用头盔3安装Nginx,但是当我指定名称空间时它不起作用.知道为什么吗?它没有工作.
I have a question. I am trying to install nginx with helm 3 but it is not working when i specify the namespace.Any idea why ? it works without.
helm install nginx-release nginx-stable/nginx-ingres -n ingress-basic
Error: failed to download "nginx-stable/nginx-ingres" (hint: running `helm repo update` may help)
推荐答案
您的命令有错字,您键入了nginx-stable/nginx-ingres
,它应该是nginx-stable/nginx-ingress
.
Your command has a typo, you typed nginx-stable/nginx-ingres
and it should be nginx-stable/nginx-ingress
.
按照文档,您就是为官方NGINX Ingress使用正确的存储库.要使用头盔成功安装它,您必须运行以下命令:
Following the documentation, your are using the right repository for the official NGINX Ingress. To successfully install it using helm you have to run the following commands:
- 添加NGINX Helm存储库:
- Add NGINX Helm repository:
$ helm repo add nginx-stable https://helm.nginx.com/stable
$ helm repo update
要使用发布名称my-release(my-release是您选择的名称)安装图表:
To install the chart with the release name my-release (my-release is the name that you choose):
$ helm install my-release nginx-stable/nginx-ingress
在您的情况下,命令应如下所示:
In your scenario the command should look like this:
$ helm install nginx-release nginx-stable/nginx-ingress -n ingress-basic
在运行上述命令之前,您必须创建名称空间:
Before running the above command, you have to create the namespace:
kubectl create namespace ingress-basic
这篇关于指定名称空间时,无法从Nginx-stable安装带有头盔的Nginx入口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!