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日 下午6:09

相关推荐

  • Helm | Helm 仓库列表

    文章目录helm repo list可选项从父命令继承的命令请参阅 helm repo list 列举chart仓库 可选项 -h, –help help for list -o…

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

    文章目录elinks补充说明语法选项参数 elinks 纯文本界面的WWW浏览器 补充说明 elinks命令 能实现一个纯文本界面的WWW浏览器,操作方式与“lynx”类似。 语法…

    入门教程 2023年 12月 14日
  • 常用函数

    以下列出了 Pandas 常用的一些函数及使用实例: 文章目录读取数据实例查看数据实例实例数据清洗实例数据选择和切片实例数据排序实例数据分组和聚合实例数据合并实例数据选择和过滤数据…

    2023年 5月 16日
  • cut

    文章目录cut补充说明语法选项参数实例指定字段的字符或者字节范围 cut 连接文件并打印到标准输出设备上 补充说明 cut 命令 用来显示行中的指定部分,删除文件中指定字段。cut…

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

    文章目录tar补充说明语法选项参数实例zip格式tar格式(该格式仅仅打包,不压缩)tar.gz格式tar.bz2格式tar.xz格式tar.Z格式(已过时)jar格式7z格式其它…

    入门教程 2024年 3月 11日
  • HTTP 状态码

    当浏览者访问一个网页时,浏览者的浏览器会向网页所在服务器发出请求。当浏览器接收并显示网页前,此网页所在的服务器会返回一个包含 HTTP 状态码的信息头(server header)…

    2023年 5月 14日
  • logrotate

    文章目录logrotate补充说明语法选项参数实例注意事项 logrotate 系统日志进行轮转、压缩和删除 补充说明 logrotate命令 用于对系统日志进行轮转、压缩和删除,…

    入门教程 2023年 12月 19日
  • talk

    文章目录talk补充说明语法参数实例 talk 让用户和其他用户聊天 补充说明 talk命令 是talk服务器的客户端工具,通过talk命令可以让用户和其他用户聊天。linux中t…

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

    文章目录pv补充说明下载安装语法选项实例注意 pv 显示当前在命令行执行的命令的进度信息,管道查看器 补充说明 pv命令 Pipe Viewer 的简称,由Andrew Wood …

    入门教程 2024年 3月 1日
  • diff

    文章目录diff补充说明语法选项参数实例以正常模式比较差异以上下文 (context) 模式比较差异以联合 (unified) 模式比较差异多文件比较差异 diff 比较给定的两个…

    入门教程 2023年 12月 7日
Translate »