【问题标题】:Pulumi - Chart - Failed checking the Kubernetes version: argocd: >= 1.22.0-0 and got Kubernetes 1.20.0Pulumi - Chart - 检查 Kubernetes 版本失败:argocd: >= 1.22.0-0 并获得 Kubernetes 1.20.0
【发布时间】:2022-11-26 19:50:24
【问题描述】:

在部署 argo-cd helm 图表时遇到问题,似乎无法检查 Kubernetes 版本:argocd: >= 1.22.0-0 并获得 Kubernetes 1.20.0

Pulumi 没有在我的 Mac 上使用已安装的 Helm,并且似乎将 kube-version 设置为 1.20.0!

Pulumi 图表资源:

    new k8s.helm.v3.Chart(
      'argo-cd',
      {
        chart: 'argo-cd',
        fetchOpts: {
          repo: 'https://argoproj.github.io/argo-helm'
        },
        namespace: 'argo',
        values: {}
      },
      {
        providers: {
          kubernetes: cluster.provider
        }
      }
    );

结果:

  pulumi:pulumi:Stack (my-project-prod):
    error: Error: invocation of kubernetes:helm:template returned an error: failed to generate YAML for specified Helm chart: failed to create chart from template: chart requires kubeVersion: >=1.22.0-0 which is incompatible with Kubernetes v1.20.0

【问题讨论】:

    标签: kubernetes charts pulumi


    【解决方案1】:

    该图表按预期工作。 >=1.22.0-0 表示图表必须使用大于 1.22.0 的 Kubernetes 客户端版本呈现。

    检查您的 Helm 版本是根据 1.22 编译的。

    如果要根据集群的功能呈现图表,请使用helm template --validate。这将告诉 Helm 从您的集群中提取 Kubernetes 版本。否则,它使用 Helm 客户端编译所针对的 Kubernetes 版本。

    您也可以参考此 github link 了解更多故障排除步骤。

    【讨论】:

      猜你喜欢
      • 2018-02-11
      • 2019-03-02
      • 2019-05-23
      • 2019-02-06
      • 2020-03-01
      • 2016-07-13
      • 2019-03-05
      • 2021-07-23
      • 2018-11-30
      相关资源
      最近更新 更多