Hello folks,
I am performing a multi cluster ingress on GKE with the help of below documentation:
https://cloud.google.com/kubernetes-engine/docs/how-to/multi-cluster-ingress
where while creating multiclusterservices I am getting Apiversion error as below:
error: unable to recognize "svc.yaml": no matches for kind "MultiClusterService" in version "networking.gke.io/v1"
Similarly for Multiclusteringress same Apiversion error is there.
Hence, I need to know which Apiversion we should use while creating multiclusterservices and multiclusteringress. (Note: I am using same service and ingress yaml files mentioned in the above documentation). Please let me know if I am missing anything from my side in the configuration.
Thanks
Can you check if the you have enabled MCS feature on gke cluster?
$gcloud container hub multi-cluster-services describe
> createTime: '2022-02-20T21:04:19.439076858Z'
name: projects/<project-id>/locations/global/features/multiclusterservicediscovery
resourceState:
state: ACTIVE
Hi @harryspaul ,
Thanks for your response. Yes I have enabled MCS feature on GKE clusters and state is also Active.
Hello,
The issue was because of the config cluster. In our Project config cluster was set to some another cluster.
Only one cluster can be the active config cluster at any time. If we deploy MultiClusterIngress and MultiClusterService resources to other clusters, they will not be seen or processed by the Multi Cluster Ingress controller.
Hence, I had to update the cluster as config cluster with below command:
gcloud alpha container hub ingress update --config-membership=projects/<project-id>/locations/global/memberships/<cluster-name>
Issue got resolved after this.
Thanks