TargetGroupBinding Error in EKS

0
apiVersion: apiextensions.k8s.io/v1
kind: TargetGroupBinding
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.5.0
  name: target-group

spec:
  serviceRef:
    name: name
    port: 80
  targetGroupARN: arn:aws:elasticloadbalancing:us-east-1:XXXXXX:targetgroup/name/ZZZZZZZZ

I am trying to create target group binding with service called name. Running kubectl apply -n default -f target-group.yml keeps on throwing error error: unable to recognize "target-group.yml": no matches for kind "TargetGroupBinding" in version "apiextensions.k8s.io/v1". Have tried changing the apiVersion to multiple things but none of them is working.

Can anyone help here what is wrong?

已提问 2 年前56 查看次数
没有答案

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则