头盔升级命令无故失败 [英] Helm upgrade command fails for no apparent reason
本文介绍了头盔升级命令无故失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在GKE k8s集群上执行helm
升级.
I want to perform a helm
upgrade on a GKE k8s cluster.
我正在执行以下命令
helm upgrade --force --tls --install --set master.installPlugins=[u'kubernetes:1.21.2', u'workflow-job:2.36', u'workflow-aggregator:2.6', u'credentials-binding:1.20', u'git:4.0.0'] --set master.tag=lts --set agent.tag=3.27-1 -f /org_files/tmp/kerkyra-jenkins/jenkins-values.yaml --namespace jenkins my-jenkins stable/jenkins
但是它失败,并带有以下名称:
However it fails with the following name:
错误:此命令需要2个参数:发行版名称,图表路径
Error: This command needs 2 arguments: release name, chart path
我确实在命令末尾通过了
I do pass at the end of the command however both
- 发行名称:
my-jenkins
- 图表路径:
stable/jenkins
- release name:
my-jenkins
- chart path:
stable/jenkins
为什么会失败?
推荐答案
假设您使用的是helm3,则需要在标志前加2个辩论号.
Assuming you're using helm3 it requires the 2 arguemnts before the flags.
Error: "helm upgrade" requires 2 arguments
Usage: helm upgrade [RELEASE] [CHART] [flags]
因此这应该可以工作:
helm upgrade my-jenkins stable/jenkins --force --tls --install --set master.installPlugins=[u'kubernetes:1.21.2', u'workflow-job:2.36', u'workflow-aggregator:2.6', u'credentials-binding:1.20', u'git:4.0.0'] --set master.tag=lts --set agent.tag=3.27-1 -f /org_files/tmp/kerkyra-jenkins/jenkins-values.yaml --namespace jenkins
更新:头盔2应该相同
Update: Should be the same for helm 2
这篇关于头盔升级命令无故失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文