0

I am trying to setup Multi-cluster Ingress in GCP, following the steps at the documentation page.

When I try to setup config cluster using following command, it's giving me error -

$ gcloud alpha container hub ingress enable \
       --config-membership=projects/myproject/locations/global/memberships/gke-us

ERROR: (gcloud.alpha.container.hub.ingress.enable) INVALID_ARGUMENT: InvalidValueError for field config_membership: Membership "projects/myproject/locations/global/memberships/projects/myproject/locations/global/memberships/gke-us" does not exist

When I run kubectl config get-contexts, I can see the gke-us exists.

> $ gcloud container hub memberships list.      
NAME    EXTERNAL_ID
> gke-us  2b7924f5-c55e-485f-959b-9048b0920713 
> gke-eu  9ed69091-56b7-44c0-af49-2ccf817c5fcf

I have done this setup earlier few times and never faced this issue but suddenly it has started coming.

Amit
  • 1,642
  • 2
  • 13
  • 22
  • Just wondering if you have tried to get the output from running the $ gcloud command without [alpha](https://stackoverflow.com/questions/42853286/what-is-the-difference-between-gcloud-alpha-commands-and-gcloud-beta-commands) – Pit Jul 12 '21 at 10:05
  • Can you post the output of `gcloud container hub memberships list` ? – Gari Singh Jul 13 '21 at 10:26
  • @GariSingh - added output above – Amit Jul 15 '21 at 19:07
  • 1
    Still looking into this, but are you sure your project_id is actually `myproject`? You might also want to try `gcloud container hub memberships list --uri` as it should output the URIs for each member. – Gari Singh Jul 16 '21 at 09:43
  • i changed it here.. I am using the right project name. – Amit Jul 17 '21 at 12:17
  • the output seems to be repeating ```"projects/myproject/locations/global/memberships/projects/ myproject/locations/global /memberships/gke-us``` Please could you confirm is not a copy paste error typo. – Pit Jul 19 '21 at 15:39

0 Answers0