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?

asked 2 years ago56 views
No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions