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

相关推荐

  • lpadmin

    文章目录lpadmin补充说明语法选项参数 lpadmin 配置CUPS套件中的打印机和类 补充说明 lpadmin命令 用于配置CUPS套件中的打印机和类,也被用来设置打印服务器…

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

    文章目录wall补充说明语法参数实例 wall 向系统当前所有打开的终端上输出信息 补充说明 wall命令 用于向系统当前所有打开的终端上输出信息。通过wall命令可将信息发送给每…

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

    文章目录pathchk补充说明语法选项参数 pathchk 检查文件中不可移植的部分 补充说明 pathchk命令 用来检查文件中不可移植的部分。 语法 pathchk(选项)(参…

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

    文章目录route补充说明语法选项参数实例 route 显示并设置Linux中静态路由表 补充说明 route命令 用来显示并设置Linux内核中的网络路由表,route命令设置的…

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

    文章目录vgchange补充说明语法选项参数实例 vgchange 修改卷组属性 补充说明 vgchange命令 用于修改卷组的属性,经常被用来设置卷组是处于活动状态或非活动状态。…

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

    文章目录jwhois补充说明语法选项实例 jwhois whois 客户端服务 补充说明 jwhois searches Whois servers for the object …

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

    文章目录batch补充说明语法选项参数实例 batch 在系统不繁忙的时候执行定时任务 补充说明 batch命令 用于在指定时间,当系统不繁忙时执行任务,用法与at相似。 语法 b…

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

    文章目录col补充说明语法选项 col 过滤控制字符 补充说明 col命令 是一个标准输入文本过滤器,它从标注输入设备读取文本内容,并把内容显示到标注输出设备。在许多UNIX说明文…

    入门教程 2023年 12月 7日
  • Helm | Helm 展示Crd

    文章目录helm show crds简介可选项从父命令继承的可选项SEE ALSO helm show crds 显示chart的CRD 简介 该命令检查chart(目录、文件或U…

    入门教程 2023年 12月 14日
  • 29. Defer

    欢迎来到 Golang 系列教程的第 29 篇。 文章目录什么是 defer?示例延迟方法实参取值(Arguments Evaluation)defer 栈defer 的实际应用 …

    2023年 12月 5日
Translate »