You need to enable JavaScript to run this app.
最新活动
大模型
产品
解决方案
定价
生态与合作
支持与服务
开发者
了解我们

如何在Helm 3中查看Chart版本并安装特定版本(含Flink部署问题)

Let's sort out the issues you're facing with Helm 3 and cover the general workflow for checking chart versions and installing specific releases.

Why Your Commands Failed

Helm 3 made breaking changes to the search command compared to Helm 2—those -r and -l flags no longer exist, and you need to explicitly target repository searches with helm search repo. Also, helm show all flink failed because you hadn't added the official Flink Helm repository yet.

  1. First, add the official Flink Helm repository (required before searching/showing)
    helm repo add flink https://flink.apache.org/charts
    helm repo update
    
  2. Search for Flink chart and list all available versions
    Replace your old helm search -r "*flink*" and helm search -l flink with:
    helm search repo flink --versions
    
    This will output all Flink chart versions hosted in the added repository.
  3. Show full details for a Flink chart (specific version optional)
    To get all info for the latest version:
    helm show all flink/flink
    
    For a specific version (e.g., 1.17.0):
    helm show all flink/flink --version 1.17.0
    

General Workflow for Any Helm Chart

Checking Chart Versions

  • Step 1: Add the repository (if not already added)
    If you don't know the repo URL, you can find it in the chart's official docs. For example, for Bitnami charts:
    helm repo add bitnami https://charts.bitnami.com/bitnami
    helm repo update
    
  • Step 2: Search the chart and list versions
    helm search repo <chart-name> --versions
    
    Tip: If multiple repos have the same chart name, prefix the chart with the repo name (e.g., bitnami/nginx) to avoid ambiguity.
  • Step 3: View detailed info for a specific version
    helm show all <repo-name>/<chart-name> --version <version-number>
    

Installing a Specific Chart Version

Use the --version flag with helm install to target a specific release:

helm install <your-release-name> <repo-name>/<chart-name> --version <version-number>

Example: Installing version 1.25.3 of Bitnami's Nginx chart:

helm install my-nginx bitnami/nginx --version 1.25.3

内容的提问来源于stack exchange,提问作者Dolphin

火山引擎 最新活动