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

相关推荐

  • bzless

    文章目录bzless补充说明语法参数 bzless 增强.bz2压缩包查看器 补充说明 bzless命令 是增强“.bz2”压缩包查看器,bzless比bzmore命令功能更加强大…

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

    文章目录openssl补充说明实例 openssl 强大的安全套接字层密码库 补充说明 OpenSSL 是一个强大的安全套接字层密码库,囊括主要的密码算法、常用的密钥和证书封装管理…

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

    文章目录spell补充说明语法参数 spell 对文件进行拼写检查 补充说明 spell命令 对文件进行拼写检查,并把拼写错误的单词输出。 语法 spell(参数) 参数 文件:指…

    入门教程 2024年 3月 5日
  • 33. 函数是一等公民(头等函数)

    欢迎来到 Golang 系列教程的第 33 篇。 文章目录什么是头等(第一类)函数?匿名函数用户自定义的函数类型高阶函数把函数作为参数,传递给其它函数在其它函数中返回函数闭包头等函…

    2023年 12月 5日
  • rsh

    文章目录rsh补充说明语法选项参数 rsh 连接远程主机并执行命令 补充说明 rsh命令 用于连接到远程的指定主机并执行指定的命令。 语法 rsh(选项)(参数) 选项 -d:使用…

    入门教程 2024年 3月 4日
  • fping

    文章目录fping补充说明语法选项实例 fping fping检测主机是否存在 补充说明 fping命令 fping类似于ping,但比ping强大。与ping要等待某一主机连接超…

    入门教程 2023年 12月 14日
  • Helm | Helm 仓库索引

    文章目录helm repo index简介可选项从父命令继承的命令请参阅 helm repo index 基于包含打包chart的目录,生成索引文件 简介 读取当前目录,并根据找到…

    入门教程 2023年 12月 14日
  • edquota

    文章目录edquota补充说明语法选项参数实例 edquota 用于编辑指定用户或工作组磁盘配额 补充说明 edquota命令 用于编辑指定用户或工作组磁盘配额。edquota预设…

    入门教程 2023年 12月 14日
  • HTTP 状态码

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

    2023年 5月 14日
  • mysqladmin

    文章目录mysqladmin补充说明语法选项参数 mysqladmin MySQL服务器管理客户端 补充说明 mysqladmin命令 是mysql服务器管理任务的客户端工具,它可…

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