Replies: 1 comment 15 replies
-
Hi @dshah2012 , The API port number does not have to be different, as long as the pods get different IPs. The instance name and service address cannot be the same, there will be no clustering in this case. I would run each gNMIc instance together with a consul instance in the same pod, in this case there is no need to specify an IP for gNMIc's API, a port number is enough, the Consul agent will add its own IP (which would also be gNMIc's) as the service IP. As for the |
Beta Was this translation helpful? Give feedback.
-
Hello @karimra ,
I am trying the cluster feature of the gnmic and have this doubt. I am building a helm chart that will deploy the gnmic to the kubernetes environmet in a cluster mode. I was looking at the examples of docker-compose.yaml for a reference. I see in the documentation that the at the start-up phase that the gnmic-api address are registered which would be different if we provide that for different gnmic instance. But the thing in deployment is that we specify the replicas and it will handle the replication for that pods/containers. In this case the GNMIC_API and GNMIC_CLUSTERING_INSTANCE_NAME and GNMIC_CLUSTERING_SERVICE_ADDRESS would remain same and just one instance would be registered. So does it mean that the leader will be just one as there are no other distinctive instances and are the targets been distributed in instance based upon the load irrespective of the GNMIC_CLUSTERING_INSTANCE_NAM, GNMIC_CLUSTERING_SERVICE_ADDRES ?
Beta Was this translation helpful? Give feedback.
All reactions