Helm 依存関係

helm dependency

チャートの依存関係を管理します

概要

チャートの依存関係を管理します。

Helmチャートは、依存関係を 'charts/' に保存します。チャート開発者にとって、すべての依存関係を宣言する '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.yaml' ファイルの名前と一致する必要があります。

'version' フィールドには、セマンティックバージョンまたはバージョン範囲を含める必要があります。

'repository' URLは、チャートリポジトリを指す必要があります。Helmは、URLに '/index.yaml' を追加することで、チャートリポジトリのインデックスを取得できることを期待しています。注意:'repository' はエイリアスにすることができます。エイリアスは、'alias:' または '@' で始まる必要があります。

2.2.0 以降、リポジトリはローカルに保存されている依存関係チャートのディレクトリへのパスとして定義できます。パスは "file://" のプレフィックスで始める必要があります。たとえば、

# Chart.yaml
dependencies:
- name: nginx
  version: "1.2.3"
  repository: "file://../dependency_chart/nginx"

依存関係チャートがローカルで取得された場合、"helm add repo" によってリポジトリをhelmに追加する必要はありません。この場合もバージョンマッチングがサポートされています。

オプション

  -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 file 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 - 指定されたチャートの依存関係をリストします
  • helm dependency update - Chart.yamlの内容に基づいてcharts/を更新します
spf13/cobraによって2024年1月24日に自動生成されました