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

相关推荐

  • iOS Xcode 安装

    1、从 https://developer.apple.com/downloads/ 下载Xcode的最新版本。 2、双击Xcode dmg文件3、将找到的设备安装和打开 4、在这…

    2023年 4月 10日
  • dstat

    文章目录dstat补充说明下载安装使用说明语法常用选项实例 dstat 通用的系统资源统计工具 补充说明 dstat命令 是一个用来替换vmstat、iostat、netstat、…

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

    文章目录xlsfonts补充说明语法选项 xlsfonts 列出X Server使用的字体 补充说明 xlsfonts命令 列出X Server使用的字体,也能使用范本样式仅列出的…

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

    文章目录quotacheck补充说明语法选项参数实例 quotacheck 检查磁盘的使用空间与限制 补充说明 quotacheck命令 通过扫描指定的文件系统,获取磁盘的使用情况…

    入门教程 2024年 3月 1日
  • SQL 简介

    SQL (Structured Query Language:结构化查询语言) 是用于管理关系数据库管理系统(RDBMS)。 SQL 的范围包括数据插入、查询、更新和删除,数据库模…

    2023年 5月 28日
  • info

    文章目录info补充说明语法选项参数实例 info Linux下info格式的帮助指令 补充说明 info命令 是Linux下info格式的帮助指令。 就内容来说,info页面比m…

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

    文章目录rlogin补充说明语法选项参数 rlogin 从当前终端登录到远程Linux主机 补充说明 rlogin命令 用于从当前终端登录到远程Linux主机。 语法 rlogin…

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

    文章目录objdump补充说明选项实例 objdump 显示二进制文件信息 补充说明 objdump命令 是用查看目标文件或者可执行的目标文件的构成的gcc工具。 选项 -a –…

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

    文章目录pmap补充说明语法选项参数实例 pmap 报告进程的内存映射关系 补充说明 pmap命令 用于报告进程的内存映射关系,是Linux调试及运维一个很好的工具。 语法 pma…

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

    文章目录unlink补充说明语法选项参数 unlink 系统调用函数unlink去删除指定的文件 补充说明 unlink命令 用于系统调用函数unlink去删除指定的文件。和rm命…

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