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

相关推荐

  • dstat

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

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

    文章目录netstat补充说明语法选项实例扩展知识网络连接状态详解 netstat 查看Linux中网络系统状态信息 补充说明 netstat命令 用来打印Linux中网络系统的状…

    入门教程 2024年 1月 10日
  • sync

    文章目录sync补充说明语法选项buffer与cache sync 用于强制被改变的内容立刻写入磁盘 补充说明 sync命令 用于强制被改变的内容立刻写入磁盘,更新超块信息。 在L…

    入门教程 2024年 3月 11日
  • 创建第一款iPhone应用程序

    现在让我们来创建一个在iOS模拟器上运行的简单视图应用(空白的应用程序)。 操作步骤如下: 1、打开Xcode并选择创建一个新的Xcode项目。 然后选择单一视图应用程序 接下来输…

    2023年 4月 10日
  • curl

    文章目录curl补充说明语法选项实例文件下载不输出错误和进度信息断点续传使用curl设置参照页字符串用curl设置用户代理字符串curl的带宽控制和下载配额用curl进行认证只打印…

    入门教程 2023年 12月 7日
  • 34. 反射

    欢迎来到 Golang 系列教程的第 34 篇。 反射是 Go 语言的高级主题之一。我会尽可能让它变得简单易懂。 本教程分为如下小节。 什么是反射? 为何需要检查变量,确定变量的类…

    2023年 12月 5日
  • git 图形桌面推荐

    目前主流跨平台开发工具,个人比较推荐使用vscvsc支持多种代码插件,且完全免费开源。 VSCode+git+gitGraph VSC: https://code.visualst…

    2024年 4月 30日
  • ngrep

    文章目录ngrep补充说明安装语法选项实例 ngrep 方便的数据包匹配和显示工具 补充说明 ngrep命令 是grep命令的网络版,他力求更多的grep特征,用于搜寻指定的数据包…

    入门教程 2024年 1月 10日
  • jobs

    文章目录jobs概要主要用途选项返回值例子注意 jobs 显示作业的状态。 概要 jobs [-lnprs] [jobspec …] jobs -x command [args…

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

    文章目录htdigest补充说明语法选项参数 htdigest Apache服务器内置工具 补充说明 htdigest命令 是Apache的Web服务器内置工具,用于创建和更新储存…

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