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회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠