Helm upgrade command fails for no apparent reason

六眼飞鱼酱① 提交于 2020-03-25 18:41:57

问题


I want to perform a helm upgrade on a GKE k8s cluster.

I am executing the following command

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:

Error: This command needs 2 arguments: release name, chart path

I do pass at the end of the command however both

  • release name: my-jenkins
  • chart path: stable/jenkins

Why is it failing?


回答1:


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]

So this should then work:

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 

Update: Should be the same for helm 2



来源:https://stackoverflow.com/questions/59835925/helm-upgrade-command-fails-for-no-apparent-reason

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!