Helm 忽略指定版本并安装最新版本
Helm ignores specified version and installs latest
每当我输入时,我和我的同事都会遇到问题
helm install mystuff-nginx ingress-nginx/ingress-nginx --version 3.26.0
我已经在 3.26.0
版本中成功部署了 nginx,但是当他在他的笔记本电脑上运行相同的命令只是使用了不同的名称 mystuff-nginx-1
他安装了最新版本 4.0.1
,和想法发生了什么事?我们有相同版本的 helm、gcloud 和 kubectl,甚至重新下载了二进制文件。
我们知道该版本可用
MacBook-Pro-2% helm search repo -l ingress-nginx/ingress-nginx
ingress-nginx/ingress-nginx 4.0.2 1.0.1 Ingress controller for Kubernetes using NGINX a...
ingress-nginx/ingress-nginx 4.0.1 1.0.0 Ingress controller for Kubernetes using NGINX a...
ingress-nginx/ingress-nginx 3.37.0 0.49.1 Ingress controller for Kubernetes using NGINX a...
ingress-nginx/ingress-nginx 3.36.0 0.49.0 Ingress controller for Kubernetes using NGINX a...
ingress-nginx/ingress-nginx 3.35.0 0.48.1 Ingress controller for Kubernetes using NGINX a...
...
ingress-nginx/ingress-nginx 3.26.0 0.44.0 Ingress controller for Kubernetes using NGINX a...
根据 Helm 的文档:
helm install [NAME] [CHART] [flags]
版本标志:
--version string specify a version constraint for the chart version to use. This constraint can be a specific tag (e.g. 1.1.1) or it may reference a valid range (e.g. ^2.0.0). If this is not specified, the latest version is used
所以,你可以试试:
$ helm install nginx-ingress ingress-nginx/ingress-nginx --version "3.26.0"
头盔列表:
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
nginx-ingress default 1 2021-09-24 09:44:54.261772858 -0300 -03 deployed ingress-nginx-3.26.0 0.44.0
我用的是helm v3.5.4版本和k3d集群来测试
每当我输入时,我和我的同事都会遇到问题
helm install mystuff-nginx ingress-nginx/ingress-nginx --version 3.26.0
我已经在 3.26.0
版本中成功部署了 nginx,但是当他在他的笔记本电脑上运行相同的命令只是使用了不同的名称 mystuff-nginx-1
他安装了最新版本 4.0.1
,和想法发生了什么事?我们有相同版本的 helm、gcloud 和 kubectl,甚至重新下载了二进制文件。
我们知道该版本可用
MacBook-Pro-2% helm search repo -l ingress-nginx/ingress-nginx
ingress-nginx/ingress-nginx 4.0.2 1.0.1 Ingress controller for Kubernetes using NGINX a...
ingress-nginx/ingress-nginx 4.0.1 1.0.0 Ingress controller for Kubernetes using NGINX a...
ingress-nginx/ingress-nginx 3.37.0 0.49.1 Ingress controller for Kubernetes using NGINX a...
ingress-nginx/ingress-nginx 3.36.0 0.49.0 Ingress controller for Kubernetes using NGINX a...
ingress-nginx/ingress-nginx 3.35.0 0.48.1 Ingress controller for Kubernetes using NGINX a...
...
ingress-nginx/ingress-nginx 3.26.0 0.44.0 Ingress controller for Kubernetes using NGINX a...
根据 Helm 的文档:
helm install [NAME] [CHART] [flags]
版本标志:
--version string specify a version constraint for the chart version to use. This constraint can be a specific tag (e.g. 1.1.1) or it may reference a valid range (e.g. ^2.0.0). If this is not specified, the latest version is used
所以,你可以试试:
$ helm install nginx-ingress ingress-nginx/ingress-nginx --version "3.26.0"
头盔列表:
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
nginx-ingress default 1 2021-09-24 09:44:54.261772858 -0300 -03 deployed ingress-nginx-3.26.0 0.44.0
我用的是helm v3.5.4版本和k3d集群来测试