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

相关推荐

  • 环境设置

    如果您想要设置 C++ 语言环境,您需要确保电脑上有以下两款可用的软件,文本编辑器和 C++ 编译器。 文章目录文本编辑器C++ 编译器安装 GNU 的 C/C++ 编译器UNIX…

    2024年 3月 18日
  • telinit

    文章目录telinit补充说明语法选项参数EnvironmentFiles telinit 切换当前正在运行系统的运行等级 补充说明 telinit命令 用于切换当前正在运行的Li…

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

    文章目录pigz补充说明语法参数实例 pigz 可以用来解压缩文件,gzip的并行实现升级版 补充说明 pigz命令可以用来解压缩文件,最重要的是支持多线程并行处理,解压缩比gzi…

    入门教程 2024年 3月 1日
  • HTML 表格

    表格由 <table> 标签来定义。每个表格均有若干行(由 <tr> 标签定义),每行被分割为若干单元格(由 <td> 标签定义)。字母 td …

    2023年 4月 13日
  • xset

    文章目录xset补充说明语法选项参数 xset 设置X-Window系统中的用户爱好的实用工具 补充说明 xset命令 是设置X-Window系统中的用户爱好的实用工具。 语法 x…

    入门教程 2024年 3月 11日
  • Java 正则表达式

    正则表达式定义了字符串的模式。 正则表达式可以用来搜索、编辑或处理文本。 正则表达式并不仅限于某一种语言,但是在每种语言中有细微的差别。 文章目录正则表达式实例实例捕获组实例Reg…

    入门教程 2023年 3月 4日
  • HTTP 状态码

    当浏览者访问一个网页时,浏览者的浏览器会向网页所在服务器发出请求。当浏览器接收并显示网页前,此网页所在的服务器会返回一个包含 HTTP 状态码的信息头(server header)…

    2023年 5月 14日
  • 数据清洗

    数据清洗是对一些没有用的数据进行处理的过程。 很多数据集存在数据缺失、数据格式错误、错误数据或重复数据的情况,如果要对使数据分析更加准确,就需要对这些没有用的数据进行处理。 在这个…

    2023年 5月 16日
  • zfore

    文章目录zfore补充说明语法参数 zfore 强制为gzip格式的压缩文件添加.gz后缀 补充说明 zfore命令 强制为gzip格式的压缩文件添加“.gz”后缀。 语法 zfo…

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

    文章目录shopt补充说明语法选项参数实例 shopt 显示和设置shell操作选项 补充说明 shopt命令 用于显示和设置shell中的行为选项,通过这些选项以增强shell易…

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