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?
Assuming you're using helm3 it requires the 2 arguments 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
Related
I am using the following command to install the Helm chart
helm upgrade myRelease azureacr/chart --namespace calculator --install --set replicaCount=4 --set image.repository=my.azurecr.io --set canary=false --wait --timeout 45s
it works perfectly fine.
However, I want to (re)view the generated chart before installing it? The below command just prints the template and I don't know how to pass the parameters to it
helm template myRelease
In other words, I know that the value of "c" is 2 for the below code
var a = 1, b = 1, c = a +b
In the same way, is there a way to get the final chart by applying the required parameters?
You can try using --dry-run command in helm install something like this
helm upgrade myRelease azureacr/chart --namespace calculator --install --set replicaCount=4 --set image.repository=my.azurecr.io --set canary=false --wait --timeout 45s --dry-run --debug
It's a great way to have the server render your templates, then return the resulting manifest file.
Following the install instructions I can not install "ingress-merge".
I first tried :
helm install --namespace kube-system --name ingress-merge ./helm
That gave me the error - "Error: unknown flag: --name"
I searched that issue up and found out that the --name flag is no longer needed.
I next tried the following:
helm install ingress-merge --namespace kube-system ./helm
That gave me the error - Error: path "./helm" not found
I then took out the ./helm:
helm install ingress-merge --namespace kube-system
That gave me the error - Error: must either provide a name or specify --generate-name
What is the correct command structure?
Here is the link with the install instructions:
https://github.com/jakubkulhan/ingress-merge
First clone the git repo
git clone https://github.com/jakubkulhan/ingress-merge.git
Then use below command with helm 3. Notice --name is not needed with helm 3
helm install --namespace kube-system ingress-merge ingress-merge/helm
or below command with helm 2
helm install --namespace kube-system --name ingress-merge ingress-merge/helm
Trying to install Kong using the Helm chart using the following command using this post
>helm install --version 0.26.1 --name kong stable/kong --namespace kong --set ingressController.enabled=true --set image.tag=1.4 --set admin.useTLS=false
But getting the following error
Error: unknown flag: --name
Solution I tried
Removed -- name then I am getting the following error
Error: failed to download "stable/kong" (hint: running helm repo update may help)
Can anyone please help me with this?
In helm version 3 --name flag is removed. You can give a name without --name flag as shown below
helm repo add kong https://charts.konghq.com
helm repo update
helm install --version 1.7.0 kong kong/kong --namespace kong --set ingressController.enabled=true --set image.tag=1.4 --set admin.useTLS=false
Find more details here
I am trying to install Grafana via helm and have added both the bitnami and stable repo.
from bitnami
helm install bitnami/grafana grafana --set persistence.enabled=true --set persistence.accessModes={ReadWriteOnce} --set persistence.size=8Gi --namespace monitoring
stable
grafana $ helm install stable/grafana grafana --set persistence.enabled=true --set persistence.accessModes={ReadWriteOnce} --set persistence.size=8Gi --namespace monitoring
However, I get the following error:
helm install stable/grafana grafana --set persistence.enabled=true
--set persistence.accessModes={ReadWriteOnce} --set persistence.size=8Gi --namespace monitoring Error: failed to download
"grafana" (hint: running helm repo update may help)
I have tried helm repo update but it doesn't help.
I will appreciate some guidance on this.
Syntax is helm install [NAME] [CHART] [flags]
helm install grafana stable/grafana xxxxx should work
You just put the chart name in the wrong position
Need to search grafana in hub using Helm
helm search hub grafana
helm repo add grafana https://grafana.github.io/helm-charts
helm repo update
helm install my-release grafana/grafana
And for particular namespace:
helm install my-release grafana/grafana -n test-namespace
You can below command:
helm install my-grafana-board grafana/grafana
When running helm upgrade --install --namespace $PROJECT_NAMESPACE --values values.yaml --name $SOME_NAME some/chart.
I get Error: unknown flag: --name.
Is there no way to set the name of a chart you are targeting with upgrade? Is this only possible for install?
The solution was that no --name was needed.
The syntax for a Helm Upgrade is "helm upgrade [RELEASE] [CHART]", so the "RELEASE" is the same as what would be the --name in a Helm Install.