helm dependency
chart の依存関係を管理します
概要
chart の依存関係を管理します。
Helm chart は依存関係を charts/ ディレクトリに格納します。chart 開発者にとっては、すべての依存関係を宣言する Chart.yaml で依存関係を管理する方が簡単な場合が多いです。
dependency コマンドはこのファイルを操作し、必要な依存関係と charts/ ディレクトリに格納された実際の依存関係を簡単に同期できるようにします。
たとえば、次の Chart.yaml は 2 つの依存関係を宣言しています:
# Chart.yaml
dependencies:
- name: nginx
version: "1.2.3"
repository: "https://example.com/charts"
- name: memcached
version: "3.2.1"
repository: "https://another.example.com/charts"
name には chart の名前を指定します。この名前は、その chart の Chart.yaml ファイル内の名前と一致する必要があります。
version フィールドには、セマンティックバージョンまたはバージョン範囲を指定します。
repository URL は Chart Repository を指す必要があります。Helm は URL に /index.yaml を追加することで、chart リポジトリのインデックスを取得できることを期待します。注意: repository はエイリアスにすることもできます。エイリアスは alias: または @ で始める必要があります。
バージョン 2.2.0 以降、repository はローカルに格納された依存 chart のディレクトリパスとして定義することもできます。パスは file:// のプレフィックスで始める必要があります。たとえば:
# Chart.yaml
dependencies:
- name: nginx
version: "1.2.3"
repository: "file://../dependency_chart/nginx"
依存 chart がローカルから取得される場合、helm repo add でリポジトリを追加する必要はありません。この場合もバージョンマッチングがサポートされます。
オプション
-h, --help help for dependency
親コマンドから継承されたオプション
--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 パッケージマネージャー
- helm dependency build - Chart.lock ファイルに基づいて charts/ ディレクトリを再構築します
- helm dependency list - 指定した chart の依存関係を一覧表示します
- helm dependency update - Chart.yaml の内容に基づいて charts/ ディレクトリを更新します