Warning: Undefined array key "custom_message" in /www/wwwroot/bbs.aaronyang.cc/wp-content/plugins/wpcopyrights/index.php on line 105

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

相关推荐

  • 结构体

    文章目录结构体什么是结构体?结构体的声明定义具名结构体变量定义匿名结构体变量结构体变量的 0 值访问结构体中的字段结构体的指针匿名字段嵌套结构体(Nested Structs)提升…

    2023年 12月 5日
  • modprobe

    文章目录modprobe补充说明语法选项参数实例 modprobe 自动处理可载入模块 补充说明 modprobe命令 用于智能地向内核中加载模块或者从内核中移除模块。 modpr…

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

    文章目录logwatch补充说明语法选项实例 logwatch 可定制和可插入式的日志监视系统 补充说明 logwatch命令 是一个可定制和可插入式的日志监视系统,它通过遍历给定…

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

    文章目录getent语法选项实例 getent 查询 DNS 名称服务器中的命名空间 语法 getent [选项] 主机名或域名 选项 -h # 显示帮助信息 -n # 不解析 D…

    入门教程 2023年 12月 14日
  • 31. 自定义错误

    欢迎来到 Golang 系列教程的第 31 篇。 在上一教程里,我们学习了 Go 中的错误是如何表示的,并学习了如何处理标准库里的错误。我们还学习了从标准库的错误中提取更多的信息。…

    2023年 12月 5日
  • startx

    文章目录startx补充说明语法参数实例 startx 用来启动X Window 补充说明 startx命令 用来启动X Window,实际上启动X Window的程序为xinit…

    入门教程 2024年 3月 11日
  • Java 包(package)

    为了更好地组织类,Java 提供了包机制,用于区别类名的命名空间。 文章目录包的作用创建包例子Animal.java 文件代码:MammalInt.java 文件代码:import…

    入门教程 2023年 3月 9日
  • dirs

    文章目录dirs语法主要用途选项参数返回值例子注意 dirs 显示目录堆栈。 语法 dirs [-clpv] [+N] [-N] 主要用途 显示目录堆栈。 清空目录堆栈。 选项 -…

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

    文章目录xargs补充说明xargs 命令用法使用 -n 进行多行输出使用 -d 分割输入读取 stdin结合 -I 选项结合 find 命令使用打印出执行的命令使用 -p 选项确…

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

    文章目录iptstate补充说明语法选项 iptstate 显示iptables的工作状态 补充说明 iptstate命令 以top指令类似的风格时显示Linux内核中iptabl…

    入门教程 2023年 12月 19日
Translate »