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.