メインコンテンツまでスキップ
バージョン: 3.19.0

helm rollback

release を以前のリビジョンにロールバックします

概要

このコマンドは release を以前のリビジョンにロールバックします。

rollback コマンドの第一引数は release 名、第二引数はリビジョン(バージョン)番号です。第二引数を省略するか 0 を指定すると、直前の release にロールバックします。

リビジョン番号を確認するには helm history RELEASE を実行してください。

helm rollback <RELEASE> [REVISION] [flags]

オプション

      --cleanup-on-fail    ロールバック失敗時に、このロールバックで作成された新しいリソースの削除を許可します
--dry-run ロールバックをシミュレートします
--force 必要に応じて削除/再作成によるリソースの強制更新を行います
-h, --help help for rollback
--history-max int release ごとに保存するリビジョンの最大数を制限します。0 を指定すると無制限になります (default 10)
--no-hooks ロールバック中に hook の実行を防止します
--recreate-pods 該当するリソースに対して Pod の再起動を行います
--timeout duration 個々の Kubernetes 操作(hook 用の Job など)を待機する時間 (default 5m0s)
--wait 指定した場合、すべての Pod、PVC、Service、および Deployment・StatefulSet・ReplicaSet の最小 Pod 数が Ready 状態になるまで待機してから release を成功とマークします。待機時間は --timeout で指定した値が上限となります
--wait-for-jobs 指定した場合、--wait が有効なときにすべての Job が完了するまで待機してから release を成功とマークします。待機時間は --timeout で指定した値が上限となります

親コマンドから継承されたオプション

      --burst-limit int                 client-side default throttling limit (default 100)
--debug enable verbose output
--kube-apiserver string the address and the port for the Kubernetes API server
--kube-as-group stringArray group to impersonate for the operation, this flag can be repeated to specify multiple groups.
--kube-as-user string username to impersonate for the operation
--kube-ca-file string the certificate authority file for the Kubernetes API server connection
--kube-context string name of the kubeconfig context to use
--kube-insecure-skip-tls-verify if true, the Kubernetes API server's certificate will not be checked for validity. This will make your HTTPS connections insecure
--kube-tls-server-name string server name to use for Kubernetes API server certificate validation. If it is not provided, the hostname used to contact the server is used
--kube-token string bearer token used for authentication
--kubeconfig string path to the kubeconfig file
-n, --namespace string namespace scope for this request
--qps float32 queries per second used when communicating with the Kubernetes API, not including bursting
--registry-config string path to the registry config file (default "~/.config/helm/registry/config.json")
--repository-cache string path to the directory containing cached repository indexes (default "~/.cache/helm/repository")
--repository-config string path to the file containing repository names and URLs (default "~/.config/helm/repositories.yaml")

関連項目

  • helm - Kubernetes 用パッケージマネージャー Helm
Auto generated by spf13/cobra on 14-Jan-2026