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

相关推荐

  • bzip2

    文章目录bzip2补充说明语法选项参数实例 bzip2 将文件压缩成bz2格式 补充说明 bzip2命令 用于创建和管理(包括解压缩)“.bz2”格式的压缩包。 bzip2 采用 …

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

    文章目录uncompress补充说明语法选项参数实例 uncompress 用来解压.Z文件 补充说明 uncompress命令 用来解压缩由compress命令压缩后产生的“.Z…

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

    文章目录sar补充说明语法选项参数实例 sar 系统运行状态统计工具 补充说明 sar命令 是Linux下系统运行状态统计工具,它将指定的操作系统状态计数器显示到标准输出设备。sa…

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

    文章目录arj补充说明语法参数 arj 用于创建和管理.arj压缩包 补充说明 arj命令 是 .arj 格式的压缩文件的管理器,用于创建和管理 .arj 压缩包。 语法 arj(…

    入门教程 2023年 12月 6日
  • ssh-copy-id

    文章目录ssh-copy-id补充说明语法选项实例 ssh-copy-id 把本地的ssh公钥文件安装到远程主机对应的账户下 补充说明 ssh-copy-id命令 可以把本地主机的…

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

    文章目录pidof补充说明语法选项参数实例 pidof 查找指定名称的进程的进程号ID号 补充说明 pidof命令 用于查找指定名称的进程的进程号id号。 语法 pidof(选项)…

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

    文章目录lsattr补充说明语法选项参数实例 lsattr 查看文件的第二扩展文件系统属性 补充说明 lsattr命令 用于查看文件的第二扩展文件系统属性。 语法 lsattr(选…

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

    文章目录patch补充说明语法选项参数 patch 为开放源代码软件安装补丁程序 补充说明 patch命令 被用于为开放源代码软件安装补丁程序。让用户利用设置修补文件的方式,修改,…

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

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

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

    文章目录return概要主要用途参数返回值例子注意 return 从函数中退出并返回数值。 概要 return [n] 主要用途 使得shell函数退出并返回数值,如果没有指定n的…

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