0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Helmコマンドまとめ

Posted at

はじめに

Helmの基本的なコマンドをまとめました。
超初心者なのでまずは基本的な単語をおさらいします。

chart
アプリケーションをデプロイするために必要な、Kubernetesのリソース定義や設定ファイルが含まれます。
以下のような構成要素を持ちます。

  • Chart.yaml: Chartのメタデータ(名前、バージョンなど)
  • values.yaml: 設定値を定義するファイル
  • templatesフォルダ: Kubernetesのマニフェスト(YAMLファイル)のテンプレート
  • chartsフォルダ/: 依存関係のある他のChart

Hub
Helmのパッケージ(Chart)を検索・共有するためのリポジトリの集合体です。

repositories
Helm Chartを保存・管理する場所です。

  • パブリックレポジトリ: 公式やコミュニティが提供するChartを公開
  • プライベートレポジトリ: 独自のChartを管理し、アクセスを制限可能
  • ローカルレポジトリ: 開発環境で使用するためのレポジトリ

コマンド一覧

アプリケーションのインストール

helm install [release-name] [chart-name]
ex) helm install my-site bitnami/wordpress

アプリケーションのアップデート

helm upgrade [release-name] [chart-name]
ex) helm upgrade nginx-release bitnami/nginx

# chartのバージョンを指定
helm upgrade [release-name] [chart-name] --version 18.3.6

過去のリビジョン履歴を表示

helm history [release-name]
helm history my-site

過去のリビジョンに戻す

helm rollback [release-name] [revision-number]

アプリケーションのアンインストール

helm uninstall [release-name]
helm uninstall my-site

Helmのバージョン確認

helm version

Chart検索

# Hubからchartを検索
helm search hub [chart-name]

# repositoriesからchartを検索
helm search repo [chart-name]

Chart RepositoryをローカルのHelm環境に追加

helm repo add [repositories-name] [repositories-URL]

既存のrepositoriesを一覧表示

helm repo list

ローカルのrepositoriesを更新

helm repo update

インストールされているリリース(アプリケーション)の一覧表示

helm list
0
0
0

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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?