Helm | Helm 包

helm package

将chart目录打包到chart归档中

简介

该命令将chart打包成一个chart版本包文件。如果给定路径,就会在该路径中查找chart(必须包含Chart.yaml文件)然后将目录打包。

chart版本包会用于Helm包仓库。

要签名一个chart,使用’–sign’参数,在大多数场景中,也要提供’–keyring path/to/secret/keys’和’–key keyname’。

$ helm package –sign ./mychart –key mykey –keyring ~/.gnupg/secring.gpg

如果’–keyring’未指定,除非配置了其他方式,不然Helm通常会指定公共秘钥环。

helm package [CHART_PATH] [...] [flags]

可选项

      --app-version string       set the appVersion on the chart to this version
  -u, --dependency-update        update dependencies from "Chart.yaml" to dir "charts/" before packaging
  -d, --destination string       location to write the chart. (default ".")
  -h, --help                     help for package
      --key string               name of the key to use when signing. Used if --sign is true
      --keyring string           location of a public keyring (default "~/.gnupg/pubring.gpg")
      --passphrase-file string   location of a file which contains the passphrase for the signing key. Use "-" in order to read from stdin.
      --sign                     use a PGP private key to sign this package
      --version string           set the version on the chart to this semver version

从父命令继承的命令

      --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")

请参阅

  • helm – 针对Kubernetes的Helm包管理器

若文章对你有帮助,可以点赞或打赏支持我们。发布者:Aurora,转载请注明出处:http://61.174.243.28:13541/AY-knowledg-hub/helm-helm-%e5%8c%85/

(0)
AuroraAurora站点维系者
上一篇 2023年 12月 14日 下午4:32
下一篇 2023年 12月 14日 下午6:09

相关推荐

  • Map

    文章目录Map什么是 map?如何创建 map?向 map 中插入元素访问 map 中的元素遍历 map 中的所有元素删除元素结构体 map (Map of Structs)map…

    2023年 12月 5日
  • nm

    文章目录nm补充说明语法选项参数 nm 显示二进制目标文件的符号表 补充说明 nm命令 被用于显示二进制目标文件的符号表。 语法 nm(选项)(参数) 选项 -A:每个符号前显示文…

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

    文章目录test概要主要用途参数文件操作符:字符串运算符:其他运算符:返回值例子注意 test 执行条件表达式。 概要 test [expr] 主要用途 执行条件表达式。 参数 文…

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

    文章目录scriptreplay补充说明语法选项参数实例 scriptreplay 重新播放终端会话的所有操作 补充说明 scriptreplay 用于在终端中,根据 script…

    入门教程 2024年 3月 4日
  • C++ 的关键字(保留字)完整介绍

    1. asm asm (指令字符串):允许在 C++ 程序中嵌入汇编代码。 2. auto auto(自动,automatic)是存储类型标识符,表明变量自动具有本地范围,块范围的…

    2024年 3月 18日
  • Java 封装

    在面向对象程式设计方法中,封装(英语:Encapsulation)是指一种将抽象性函式接口的实现细节部分包装、隐藏起来的方法。 封装可以被认为是一个保护屏障,防止该类的代码和数据被…

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

    文章目录mkdir补充说明语法选项参数实例 mkdir 用来创建目录 补充说明 mkdir命令 用来创建目录。该命令创建由dirname命名的目录。如果在目录名的前面没有加任何路径…

    入门教程 2024年 1月 3日
  • 前言

    C++ 是一种高级语言,它是由 Bjarne Stroustrup 于 1979 年在贝尔实验室开始设计开发的。C++ 进一步扩充和完善了 C 语言,是一种面向对象的程序设计语言。…

    2024年 3月 18日
  • pvscan

    文章目录pvscan补充说明语法选项实例 pvscan 扫描系统中所有硬盘的物理卷列表 补充说明 pvscan命令 会扫描系统中连接的所有硬盘,列出找到的物理卷列表。使用pvsca…

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

    文章目录strings补充说明语法选项实例 strings 在对象文件或二进制文件中查找可打印的字符串 补充说明 strings命令 在对象文件或二进制文件中查找可打印的字符串。字…

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