Helm 依赖

管理chart依赖

简介

管理chart依赖

Helm chart将依赖存储在’charts/’。对于chart开发者,管理依赖比声明了所有依赖的’Chart.yaml’文件更容易。

依赖命令对该文件进行操作,使得存储在’charts/’目录的需要的依赖和实际依赖之间同步变得很容易。

比如Chart.yaml声明了两个依赖:

# 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.yaml’文件中名称。

‘version’字段应该包含一个语义化的版本或版本范围。

‘repository’的URL应该指向Chart仓库。Helm希望通过附加’/index.yaml’到URL,应该能检索chart库索引。
注意:’repository’不能是别名。别名必须以’alias:’或’@’开头。

从2.2.0开始,仓库可以被定义为本地存储的依赖chart的目录路径。路径应该以”file://”前缀开头,比如:

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

如果在本地检索依赖chart,不需要使用”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
      --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")

请参阅

若文章对你有帮助,可以点赞或打赏支持我们。发布者:Aurora,转载请注明出处:http://61.174.243.28:13541/AY-knowledg-hub/helm-%e4%be%9d%e8%b5%96/

(0)
AuroraAurora站点维系者
上一篇 2023年 12月 14日 下午4:32
下一篇 2023年 12月 14日 下午4:32

相关推荐

  • gpm

    文章目录gpm补充说明语法选项 gpm 提供文字模式下的滑鼠事件处理 补充说明 gpm命令 是Linux的虚拟控制台下的鼠标服务器,用于在虚拟控制台下实现鼠标复制和粘贴文本的功能。…

    入门教程 2023年 12月 14日
  • dig

    文章目录dig补充说明语法选项参数实例 dig 域名查询工具 补充说明 dig命令 是常用的域名查询工具,可以用来测试域名系统工作是否正常。 语法 dig(选项)(参数) 选项 @…

    入门教程 2023年 12月 7日
  • seinfo

    文章目录seinfo补充说明语法选项实例 seinfo 查询SELinux的策略提供多少相关规则 补充说明 seinfo命令 是用来查询SELinux的策略提供多少相关规则,一个主…

    入门教程 2024年 3月 4日
  • Java 日期时间

    java.util 包提供了 Date 类来封装当前的日期和时间。 Date 类提供两个构造函数来实例化 Date 对象。 第一个构造函数使用当前日期和时间来初始化对象。 Date…

    入门教程 2023年 3月 4日
  • vgcreate

    文章目录vgcreate补充说明语法选项参数实例 vgcreate 用于创建LVM卷组 补充说明 vgcreate命令 用于创建LVM卷组。卷组(Volume Group)将多个物…

    入门教程 2024年 3月 11日
  • nisdomainname

    文章目录nisdomainname补充说明语法选项 nisdomainname 显示主机NIS的域名 补充说明 nisdomainname命令 用于显示主机NIS的域名。 语法 n…

    入门教程 2024年 1月 10日
  • Helm | Helm 依赖列表

    文章目录helm dependency list简介可选项从父命令继承的命令请参阅 helm dependency list 列举指定chart的依赖 简介 列举所有的chart中…

    入门教程 2023年 12月 14日
  • journalctl

    文章目录journalctl语法选项实例 journalctl 检索 systemd 日志,是 CentOS 7 才有的工具。 语法 journalctl [OPTIONS…]…

    入门教程 2023年 12月 19日
  • IOS加速度传感器(accelerometer)

    文章目录简介实例步骤输出 简介 加速度传感器是根据x、y和z三个方向来检测在设备位置的改变。 通过加速度传感器可以知道当前设备相对于地面的位置。 以下实例代码需要在真实设备上运行,…

    2023年 3月 30日
  • passwd

    文章目录passwd补充说明语法选项参数知识扩展实例 passwd 用于让用户可以更改自己的密码 补充说明 passwd命令 用于设置用户的认证信息,包括用户密码、密码过期时间等。…

    入门教程 2024年 3月 1日
Translate »