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 次
沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南