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

相关推荐

  • telnet

    文章目录telnet补充说明语法选项参数实例 telnet 登录远程主机和管理(测试ip端口是否连通) 补充说明 telnet命令 用于登录远程主机,对远程主机进行管理。telne…

    入门教程 2024年 3月 11日
  • SQL WHERE 子句

    WHERE 子句用于过滤记录。 文章目录SQL WHERE 子句SQL WHERE 语法演示数据库WHERE 子句实例实例文本字段 vs. 数值字段实例WHERE 子句中的运算符 …

    2023年 5月 28日
  • diff

    文章目录diff补充说明语法选项参数实例以正常模式比较差异以上下文 (context) 模式比较差异以联合 (unified) 模式比较差异多文件比较差异 diff 比较给定的两个…

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

    文章目录wc补充说明语法选项参数例子 wc 统计文件的字节数、字数、行数 补充说明 wc命令 统计指定文件中的字节数、字数、行数,并将统计结果显示输出。利用wc指令我们可以计算文件…

    入门教程 2023年 12月 27日
  • shift

    文章目录shift概要主要用途参数返回值例子注意 shift 移动位置参数。 概要 shift [n] 主要用途 将位置参数$n, $n+1…重命名为$1, $2…。 参数…

    入门教程 2024年 3月 4日
  • SQL语法

    文章目录数据库表解析SQL 语句请记住…SQL 语句后面的分号?一些最重要的 SQL 命令 数据库表 一个数据库通常包含一个或多个表。每个表有一个名字标识(例如:&qu…

    2023年 5月 28日
  • mv

    文章目录mv补充说明语法选项参数实例 mv 用来对文件或目录重新命名 补充说明 mv命令 用来对文件或目录重新命名,或者将文件从一个目录移到另一个目录中。source表示源文件或目…

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

    文章目录blkid补充说明语法选项实例 blkid 查看块设备的文件系统类型、LABEL、UUID等信息 补充说明 在Linux下可以使用 blkid命令 对查询设备上所采用文件系…

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

    文章目录newusers补充说明语法参数实例 newusers 用于批处理的方式一次创建多个命令 补充说明 newusers命令 用于批处理的方式一次创建多个命令。 语法 newu…

    入门教程 2024年 1月 10日
  • HTML 头部

    文章目录HTML “HTML “元素HTML <title> 元素实例HTML “ 元素实例HTML 元素实例HTML &#8220…

    2023年 4月 12日
Translate »