Difference between revisions of "Helm upgrade"

From wikieduonline
Jump to navigation Jump to search
 
(50 intermediate revisions by 6 users not shown)
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
  [[helm]] upgrade mygrafana stable/grafana --reuse-values [[--set]] replicas=2
+
[[helm upgrade]]
 +
  [[helm upgrade --install]]
 +
 
 +
[[helm upgrade --help]]
 +
[[helm upgrade --set|--set]]
 +
[[--atomic]]
 +
[[helm upgrade --install|--install]]
 +
[[helm upgrade --reuse-values|--reuse-values]]
 +
[[helm upgrade --reset-values|--reset-values]]
 +
[[helm upgrade --debug|--debug]]
 +
[[--namespace]]
 +
[[--create-namespace]]
 +
[[--debug]]
 +
[[--dry-run]]
 +
[[--force]]
 +
[[helm upgrade -f|-f]]
 +
[[--verify]]
 +
 
 +
== Examples ==
 +
  [[helm]] upgrade mygrafana stable/grafana [[--reuse-values]] [[--set]] [[replicas]]=2
 +
[[helm upgrade --install]] kibana elastic/kibana --set cpu=100m
 +
 
 +
* [[helm upgrade elasticsearch elastic/elasticsearch -f ./values.yaml]]
 +
 
 +
[[helm upgrade redis]] bitnami/redis  --set "auth.enabled=false"
 +
 
 +
[[helm upgrade your-helm-chart ./]]
 +
 
 +
[[helm]] upgrade your-helm-chart-from-oci-repo [[oci://]]example.com --version 0.1.1
 +
 
 +
helm upgrade --namespace default my-mariadb oci://[[registry-1.docker.io]]/bitnamicharts/mariadb --set [[auth.rootPassword]]=$ROOT_PASSWORD
 +
 
 +
[[helm upgrade -f custom-values.yaml your-helm-name ./]]
 +
 
  
 
  helm upgrade --install ingress-nginx ingress-nginx \
 
  helm upgrade --install ingress-nginx ingress-nginx \
   --repo https://kubernetes.github.io/ingress-nginx \
+
   [[--repo]] https://kubernetes.github.io/ingress-nginx \
 
   [[--namespace]] [[ingress-nginx]] [[--create-namespace]]
 
   [[--namespace]] [[ingress-nginx]] [[--create-namespace]]
  
  [[helm upgrade --install]]
+
  [[helm upgrade --timeout]]  
[[helm upgrade --reuse-values]]
 
[[helm upgrade --set]]
 
  
 
  helm upgrade --reuse-values \
 
  helm upgrade --reuse-values \
Line 19: Line 50:
 
   --set alertmanagerFiles."alertmanager\.yml".receivers[1].slack_configs[0].api_url="$PROMETHEUS_SLACK_WEBHOOK"
 
   --set alertmanagerFiles."alertmanager\.yml".receivers[1].slack_configs[0].api_url="$PROMETHEUS_SLACK_WEBHOOK"
  
 +
== Errors ==
 +
helm upgrade your-helm-chart
 +
Error: This command needs 2 arguments: release name, chart path
 +
 +
[[can't evaluate field Values in type int]]
 +
 +
[[Error: UPGRADE FAILED]]: YAML parse error on elasticsearch/templates/[[statefulset.yaml]]: [[error converting YAML to JSON]]: yaml: line 60: mapping values are not allowed in this context
 +
 +
[[Error: UPGRADE FAILED]]: error validating "": error validating data: ValidationError([[StatefulSet.spec.template.spec.volumes]][0]): unknown field "claimName" in io.k8s.api.core.v1.Volume
  
 +
[[Error: UPGRADE FAILED: timed out waiting for the condition]]
  
 +
[[Error: non-absolute URLs should be in form of]] [[repo_name]]/[[path_to_chart]], got: prometheus-19.7.2
  
 
== Related ==
 
== Related ==
 
* <code>[[aws ecs update-service]]</code>
 
* <code>[[aws ecs update-service]]</code>
 
* <code>[[helm install]]</code>
 
* <code>[[helm install]]</code>
 +
* <code>[[values.yaml]]</code>
 +
* <code>[[Error: UPGRADE FAILED: timed out waiting for the condition]]</code>
 +
* <code>[[Error: UPGRADE FAILED: kind ... already exists in the cluster and wasn't defined in the previous release]]</code>
 +
* <code>[[--create-namespace]]</code>
 +
* <code>[[--version]]</code>
  
 
== See also ==
 
== See also ==
* {{Helm}}
+
* {{helm upgrade}}
 +
* {{helm install}}
  
 
[[Category:Helm]]
 
[[Category:Helm]]

Latest revision as of 18:25, 15 February 2024

helm upgrade
 helm upgrade --install
helm upgrade --help
--set
--atomic
--install
--reuse-values
--reset-values
--debug
--namespace
--create-namespace
--debug
--dry-run
--force 
-f
--verify

Examples[edit]

helm upgrade mygrafana stable/grafana --reuse-values --set replicas=2
helm upgrade --install kibana elastic/kibana --set cpu=100m
helm upgrade redis bitnami/redis  --set "auth.enabled=false"
helm upgrade your-helm-chart ./
helm upgrade your-helm-chart-from-oci-repo oci://example.com --version 0.1.1
helm upgrade --namespace default my-mariadb oci://registry-1.docker.io/bitnamicharts/mariadb --set auth.rootPassword=$ROOT_PASSWORD
helm upgrade -f custom-values.yaml your-helm-name ./


helm upgrade --install ingress-nginx ingress-nginx \
 --repo https://kubernetes.github.io/ingress-nginx \
 --namespace ingress-nginx --create-namespace
helm upgrade --timeout 
helm upgrade --reuse-values \
  prometheus \
  stable/prometheus \
  --namespace monitoring \
  -f values.prometheus.yaml \
  -f "$PROMETHEUS_EXTRA_CFG" \
  --set alertmanagerFiles."alertmanager\.yml".receivers[0].slack_configs[0].api_url="$PROMETHEUS_SLACK_WEBHOOK" \
  --set alertmanagerFiles."alertmanager\.yml".receivers[1].slack_configs[0].api_url="$PROMETHEUS_SLACK_WEBHOOK"

Errors[edit]

helm upgrade your-helm-chart
Error: This command needs 2 arguments: release name, chart path
can't evaluate field Values in type int
Error: UPGRADE FAILED: YAML parse error on elasticsearch/templates/statefulset.yaml: error converting YAML to JSON: yaml: line 60: mapping values are not allowed in this context
Error: UPGRADE FAILED: error validating "": error validating data: ValidationError(StatefulSet.spec.template.spec.volumes[0]): unknown field "claimName" in io.k8s.api.core.v1.Volume
Error: UPGRADE FAILED: timed out waiting for the condition
Error: non-absolute URLs should be in form of repo_name/path_to_chart, got: prometheus-19.7.2

Related[edit]

See also[edit]

Advertising: