Difference between revisions of "Helm install"

From wikieduonline
Jump to navigation Jump to search
Line 26: Line 26:
 
:<code>[[helm install --set persistence.enabled=true grafana grafana/grafana]]</code>
 
:<code>[[helm install --set persistence.enabled=true grafana grafana/grafana]]</code>
 
:Deprecated example: <code>[[helm install --set persistence.enabled=true grafana stable/grafana]]</code>
 
:Deprecated example: <code>[[helm install --set persistence.enabled=true grafana stable/grafana]]</code>
 +
 +
[[helm install grafana stable/grafana]] --set persistence.enabled=true --set persistence.accessModes={ReadWriteOnce} --set [[persistence]].size=8Gi
  
 
  [[helm install MY_GRAFANA_NAME stable/grafana]]<ref>https://stackoverflow.com/a/57964140/14175738</ref>
 
  [[helm install MY_GRAFANA_NAME stable/grafana]]<ref>https://stackoverflow.com/a/57964140/14175738</ref>
  
 
  [[helm install --set persistence.enabled=true grafana grafana/grafana --set ingress.enabled=true]]
 
  [[helm install --set persistence.enabled=true grafana grafana/grafana --set ingress.enabled=true]]
 +
 +
helm install stable/grafana
 +
Error: must either provide a name or specify --generate-name
 +
 +
helm install MY_FIRST_GRAFANA_INSTALL stable/grafana
 +
Error: INSTALLATION FAILED: failed to download "stable/grafana"
  
 
[[Fluentd]]
 
[[Fluentd]]
Line 36: Line 44:
 
[[Fluentbit]]
 
[[Fluentbit]]
 
  [[helm install fluent-bit]]
 
  [[helm install fluent-bit]]
[[helm install grafana stable/grafana]] --set persistence.enabled=true --set persistence.accessModes={ReadWriteOnce} --set [[persistence]].size=8Gi
 
  
 +
[[MySQL]]
 
  helm install [[--name]] mysql stable/mysql (deprecated in [[Helm v3]])
 
  helm install [[--name]] mysql stable/mysql (deprecated in [[Helm v3]])
 
  Error: unknown flag: --name
 
  Error: unknown flag: --name
  
 +
[[Ingress Nginx]]
 
  [[helm repo add]] [[ingress-nginx]] https://kubernetes.github.io/ingress-nginx/
 
  [[helm repo add]] [[ingress-nginx]] https://kubernetes.github.io/ingress-nginx/
 
  [[helm install my-release ingress-nginx/ingress-nginx]]
 
  [[helm install my-release ingress-nginx/ingress-nginx]]
Line 46: Line 55:
 
  helm install --name ingress-nginx ingress-nginx/[[ingress-nginx]]
 
  helm install --name ingress-nginx ingress-nginx/[[ingress-nginx]]
  
helm install stable/grafana
 
Error: must either provide a name or specify --generate-name
 
  
helm install MY_FIRST_GRAFANA_INSTALL stable/grafana
 
Error: INSTALLATION FAILED: failed to download "stable/grafana"
 
  
 
  helm install [[kubernetes-dashboard]]/kubernetes-dashboard --name my-release --set=service.externalPort=8080,[[resources.limits.cpu]]=200m
 
  helm install [[kubernetes-dashboard]]/kubernetes-dashboard --name my-release --set=service.externalPort=8080,[[resources.limits.cpu]]=200m

Revision as of 18:53, 1 March 2023

https://helm.sh/docs/helm/helm_install/



Examples

Prometheus

helm install myprometheus prometheus-community/prometheus

Grafana

helm install --set persistence.enabled=true grafana grafana/grafana
Deprecated example: helm install --set persistence.enabled=true grafana stable/grafana
helm install grafana stable/grafana --set persistence.enabled=true --set persistence.accessModes={ReadWriteOnce} --set persistence.size=8Gi
helm install MY_GRAFANA_NAME stable/grafana[1]
helm install --set persistence.enabled=true grafana grafana/grafana --set ingress.enabled=true
helm install stable/grafana
Error: must either provide a name or specify --generate-name
helm install MY_FIRST_GRAFANA_INSTALL stable/grafana
Error: INSTALLATION FAILED: failed to download "stable/grafana"

Fluentd

helm install fluentd

Fluentbit

helm install fluent-bit

MySQL

helm install --name mysql stable/mysql (deprecated in Helm v3)
Error: unknown flag: --name

Ingress Nginx

helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx/
helm install my-release ingress-nginx/ingress-nginx
helm install --name ingress-nginx ingress-nginx/ingress-nginx


helm install kubernetes-dashboard/kubernetes-dashboard --name my-release --set=service.externalPort=8080,resources.limits.cpu=200m
helm install my-release kubernetes-dashboard/kubernetes-dashboard


helm install RELEASE_NAME prometheus-community/kube-prometheus-stack
helm install my-duplicated-name kubernetes-dashboard/kubernetes-dashboard
Error: INSTALLATION FAILED: cannot re-use a name that is still in use
helm install --name cert-manager --namespace cert-manager --version v1.1.0 jetstack/cert-manager --set installCRDs=true
helm install kube-ops-view
helm install sentry/sentry-kubernetes your-sentry-test -f values.yaml  --wait --namespace sentry-test --set 
email.password=%smtp.pass% --set user.password=%user.pass%
Error: INSTALLATION FAILED: non-absolute URLs should be in form of repo_name/path_to_chart, got: your-sentry-test

Elasticsearch

helm install elasticsearch ./helm-charts/elasticsearch --set imageTag=7.17.3
https://artifacthub.io/packages/helm/elastic/elasticsearch
helm install elasticsearch elastic/elasticsearch
helm install elasticsearch elastic/elasticsearch --set replicas=2

Datadog

helm install <RELEASE_NAME> datadog/synthetics-private-location --set-file configFile=<MY_WORKER_CONFIG_FILE_NAME>.json

Related commands

See also

  • https://stackoverflow.com/a/57964140/14175738
  • Advertising: