概要
Kubernetes のパッケージマネージャーである Helm の使い方の説明です。
bitnami の postgresql を例に説明します。
使い方
リポジトリの追加(bitnamiの例)
helm repo add bitnami https://charts.bitnami.com/bitnami helm repo update
helmチャートのリストの取得
helm search repo bitnami
$ helm search repo bitnami NAME CHART VERSION APP VERSION DESCRIPTION bitnami/airflow 18.3.10 2.9.3 Apache Airflow is a tool to express and execute... bitnami/apache 11.2.10 2.4.62 Apache HTTP Server is an open-source HTTP serve... bitnami/apisix 3.3.6 3.9.1 Apache APISIX is high-performance, real-time AP... bitnami/appsmith 3.3.16 1.32.0 Appsmith is an open source platform for buildin... bitnami/argo-cd 6.6.3 2.11.5 Argo CD is a continuous delivery tool for Kuber... bitnami/argo-workflows 9.1.7 3.5.8 Argo Workflows is meant to orchestrate Kubernet... bitnami/aspnet-core 6.2.7 8.0.7 ASP.NET Core is an open-source framework for we... bitnami/cassandra 11.3.7 4.1.5 Apache Cassandra is an open source distributed ... bitnami/cert-manager 1.3.11 1.15.1 cert-manager is a Kubernetes add-on to automate... bitnami/cilium 1.0.7 1.15.7 Cilium is an eBPF-based networking, observabili... . . .
values.yaml の取得
helm show values bitnami/postgresql --version 15.5.17
helmチャートを使ったインストール
helm install my-postgresql bitnami/postgresql --version 15.5.17 --namespace postgresq
valuesの取得(ユーザーの設定値)
$ helm get values my-postgresql USER-SUPPLIED VALUES: global: defaultStorageClass: ceph-block
valuesの取得(ユーザーの設定値を含むすべての値を確認)
$ helm get values my-postgresql --all COMPUTED VALUES: architecture: standalone audit: clientMinMessages: error logConnections: false logDisconnections: false logHostname: false logLinePrefix: "" . . .
listの取得
$ helm list NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION my-postgresql postgresql 1 2024-07-20 16:20:58.38634155 +0900 JST deployed postgresql-15.5.17 16.3.0
historyの取得
$ helm history my-postgresql REVISION UPDATED STATUS CHART APP VERSION DESCRIPTION 1 Sat Jul 20 16:20:58 2024 deployed postgresql-15.5.17 16.3.0 Install complete $ helm get values my-postgresql