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

相关推荐

  • mysql

    文章目录mysql补充说明语法选项参数 mysql MySQL服务器客户端工具 补充说明 mysql命令 是MySQL数据库服务器的客户端工具,它工作在命令行终端中,完成对远程My…

    入门教程 2024年 1月 3日
  • TCP/IP 介绍

    TCP/IP 是用于因特网 (Internet) 的通信协议。 文章目录计算机通信协议(Computer Communication Protocol)什么是 TCP/IP?在 T…

    2023年 5月 15日
  • export

    文章目录export概要主要用途选项参数返回值例子错误用法Q&AQ:对变量或函数设置导出属性有什么用?Q:如果我编写的脚本修改了已有的环境变量的值,那么执行它会在当前终端生…

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

    文章目录iotop补充说明安装语法选项实例 iotop 用来监视磁盘I/O使用状况的工具 补充说明 iotop命令 是一个用来监视磁盘I/O使用状况的top类工具。iotop具有与…

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

    文章目录squidclient补充说明语法选项参数 squidclient squid服务器的客户端管理工具 补充说明 squidclient命令 使用squid服务器的客户端管理…

    入门教程 2024年 3月 5日
  • badblocks

    文章目录badblocks补充说明语法选项参数实例其他 badblocks 查找磁盘中损坏的区块 补充说明 badblock命令 用于查找磁盘中损坏的区块。 硬盘是一个损耗设备,当…

    入门教程 2023年 12月 6日
  • kill

    文章目录kill目录内建命令概要主要用途选项参数返回值例子注意外部命令概要主要用途选项参数例子返回值注意参考链接 kill 发送信号到进程。 目录 bash内建命令 GNU cor…

    入门教程 2023年 12月 19日
  • Helm | Helm 历史

    文章目录helm history简介可选项从父命令继承的命令请参阅 helm history 检索发布历史 简介 打印给定版本的历史修订。 默认会返回最大的256个历史版本。设置&…

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

    文章目录bye补充说明语法实例 bye 命令用于中断FTP连线并结束程序 补充说明 bye命令 在ftp模式下,输入bye即可中断目前的连线作业,并结束ftp的执行。 语法 bye…

    入门教程 2023年 12月 6日
  • whoami

    文章目录whoami概要主要用途选项返回值例子注意 whoami 打印当前有效的用户ID对应的名称 概要 whoami [OPTION]… 主要用途 打印当前有效的用户ID对应…

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