You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Helm升级AWS TargetGroupBinding失败的问题求助

Helm升级AWS TargetGroupBinding失败的问题求助

大家好,我最近碰到了一个Helm升级相关的棘手问题,想请教下有没有朋友能帮忙指点方向。

我维护的一个Helm Chart里包含了TargetGroupBinding资源的模板,代码如下:

{{- range $v := .Values.targetBindings }}
  apiVersion: elbv2.k8s.aws/v1beta1
  kind: TargetGroupBinding
  metadata:
    name: {{ include "fullname" $ }}-{{ $v.name }}
    labels:
      {{- include "labels" $ | nindent 4 }}
  spec:
    targetGroupARN: {{ $v.target }}
    serviceRef:
      name: {{ include "fullname" $ }}
      port: {{ $v.port }}
  ---
{{- end }}

这个模板在首次安装Helm Chart的时候完全正常,资源能正常创建。但只要尝试执行helm upgrade命令更新Chart,就会立刻抛出错误:

Error: UPGRADE FAILED: failed to replace object: admission webhook "vtargetgroupbinding.elbv2.k8s.aws" denied the request: TargetGroupBinding must specify these fields: spec.targetType

按照错误提示,我尝试给spec字段添加了targetType: ip(因为我们的场景确实需要用ip类型),但修改后再次执行升级,又出现了新的报错:

Error: UPGRADE FAILED: failed to replace object: admission webhook "vtargetgroupb...

有没有朋友遇到过类似的Helm升级时TargetGroupBinding校验失败的情况?或者能帮我分析下问题出在哪里吗?

备注:内容来源于stack exchange,提问作者James Gedny

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.16 11:30:31