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

相关推荐

  • rpm2cpio

    文章目录rpm2cpio补充说明语法参数实例 rpm2cpio 将RPM软件包转换为cpio格式的文件 补充说明 rpm2cpio命令 用于将rpm软件包转换为cpio格式的文件。…

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

    文章目录php补充说明语法选项参数 php PHP语言的命令行接口 补充说明 php命令 是流行的Web开发语言PHP的命令行接口,可以使用PHP语言开发基于命令行的系统管理脚本程…

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

    针对Kubernetes的Helm包管理器。 文章目录简介可选项另请参阅 简介 Kubernetes包管理器 Helm的一般操作: helm search:   搜索chart h…

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

    文章目录vgscan补充说明语法选项实例 vgscan 扫描并显示系统中的卷组 补充说明 vgscan命令 查找系统中存在的LVM卷组,并显示找到的卷组列表。vgscan命令仅显示…

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

    文章目录pwd补充说明内建命令概要选项返回值注意外部命令概要主要用途选项返回值注意例子 pwd 显示当前工作目录的绝对路径。 补充说明 pwd(英文全拼:print working…

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

    文章目录setsebool补充说明语法选项实例 setsebool 修改SElinux策略内各项规则的布尔值 补充说明 setsebool命令 是用来修改SElinux策略内各项规…

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

    文章目录popd概要主要用途选项参数返回值例子注意参考链接 popd 从目录堆栈中删除目录。 概要 popd [-n] [+N | -N] 主要用途 从目录堆栈中删除目录,如果是顶…

    入门教程 2024年 3月 1日
  • ios-委托(Delegates)

    委托(Delegates)示例 假设对象A调用B来执行一项操作,操作一旦完成,对象A就必须知道对象B已完成任务且对象A将执行其他必要操作。 在上面的示例中的关键概念有 A是B的委托…

    2023年 4月 10日
  • quotaon

    文章目录quotaon补充说明语法选项参数 quotaon 激活Linux内核中指定文件系统的磁盘配额功能 补充说明 quotaon命令 执行quotaon指令可开启磁盘对用户和群…

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

    文章目录tty概要主要用途选项返回值例子注意 tty 显示连接到当前标准输入的终端设备文件名 概要 tty [option] … 主要用途 显示连接到当前标准输入的终端设备文件…

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