LoginSignup
1

More than 3 years have passed since last update.

Helm cheat sheet

Last updated at Posted at 2018-12-05

Helm cheat sheet

よく忘れるからメモる

cluster作成後にhelmを使える状態にする

$ kubectl create -f ./rbac-config.yaml
$ helm init --service-account tiller

# コケたら多分 role作る権限がない

chartで設定できる変数(values)を見てみたい

$ helm inspect values stable/prometheus > prometheus_values.yaml

chartの中身を見てみたい

どんなmanifestが作られるのか

$ helm fetch ${chart_name}    # e.g. stable/prometheus
$ helm template ${chart}.tgz  # default
$ helm template ${chart}.tgz  -f prometheus_values.yaml # 指定したvaluesを適用した場合

installする

$ helm install ${chart_name} --name ${install_name} --namespace ${k8s_namespace}  --values {values_file}

# e.g.
# helm install stable/prometheus --name prometheus --namespace prometheus --values prometheus/values.yaml

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1