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?

demandé il y a 2 ans56 vues
Aucune réponse

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions