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

相关推荐

  • basename

    文章目录basename补充说明语法选项参数实例 basename 打印目录或者文件的基本名称 补充说明 basename命令 用于打印目录或者文件的基本名称。basename和d…

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

    文章目录nfsstat补充说明语法选项实例 nfsstat 列出NFS客户端和服务器的工作状态 补充说明 nfsstat命令 用于列出NFS客户端和服务器的工作状态。 语法 nfs…

    入门教程 2024年 1月 10日
  • SQL语法

    文章目录数据库表解析SQL 语句请记住…SQL 语句后面的分号?一些最重要的 SQL 命令 数据库表 一个数据库通常包含一个或多个表。每个表有一个名字标识(例如:&qu…

    2023年 5月 28日
  • vgconvert

    文章目录vgconvert补充说明语法选项参数实例 vgconvert 转换卷组元数据格式 补充说明 vgconvert命令 用于转换指定LVM卷组的元数据格式,通常将“LVM1”…

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

    文章目录shift概要主要用途参数返回值例子注意 shift 移动位置参数。 概要 shift [n] 主要用途 将位置参数$n, $n+1…重命名为$1, $2…。 参数…

    入门教程 2024年 3月 4日
  • command

    文章目录command补充说明语法参数实例 command 调用并执行指定的命令 补充说明 command命令 调用指定的指令并执行,命令执行时不查询shell函数。command…

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

    文章目录lpq补充说明语法选项 lpq 显示打印队列中的打印任务的状态信息 补充说明 lpq命令 用于显示打印队列中的打印任务的状态信息。 语法 lpq(选项) 选项 -E:强制使…

    入门教程 2023年 12月 19日
  • 数据清洗

    数据清洗是对一些没有用的数据进行处理的过程。 很多数据集存在数据缺失、数据格式错误、错误数据或重复数据的情况,如果要对使数据分析更加准确,就需要对这些没有用的数据进行处理。 在这个…

    2023年 5月 16日
  • systool

    文章目录systool补充说明语法选项参数实例 systool 显示基于总线、类和拓扑显示系统中设备的信息 补充说明 systool命令 指令显示基于总线、类和拓扑显示系统中设备的…

    入门教程 2024年 3月 11日
  • Java 条件语句 – if…else

    Java 中的条件语句允许程序根据条件的不同执行不同的代码块。 一个 if 语句包含一个布尔表达式和一条或多条语句。 文章目录语法Test.java 文件代码:if…e…

    入门教程 2023年 3月 4日
Translate »