How to verify that my cluster is using routes

0 votes
I have created a routes-based cluster as specified in  https://www.edureka.co/community/59209/how-to-create-a-routes-based-cluster-on-gcloud. How do I verify that my cluster is using routes?
Oct 31, 2019 in GCP by Karan
• 19,610 points
862 views

1 answer to this question.

0 votes
  • List your cluster nodes:

kubectl get nodes
  • The output shows the names of your nodes:

NAME                                 STATUS   ...     AGE    VERSION
gke-xxx-default-pool-83e239a7-kcg8   Ready    ...     42m    v1.9.7-gke.6
gke-xxx-default-pool-83e239a7-qm6b   Ready    ...     42m    v1.9.7-gke.6
gke-xxx-default-pool-83e239a7-wnrq   Ready    ...     42m    1.9.7-gke.6
  • List your routes:

gcloud compute routes list
  • In the output, in the NEXT_HOP column, look for the name of one of your cluster nodes:

NAME                 NETWORK        DEST_RANGE         NEXT_HOP
...
[ROUTE_NAME]         default        10.24.0.0/24       [YOUR_NODE_NAME]
...

In the output, you can see that the route provides a next hop for any packet that is destined for a particular Pod address range.

answered Oct 31, 2019 by Sirajul
• 59,230 points

Related Questions In GCP

0 votes
1 answer
0 votes
1 answer

How to create a routes-based cluster on Gcloud?

In Google Kubernetes Engine, clusters can be ...READ MORE

answered Oct 31, 2019 in GCP by Sirajul
• 59,230 points
1,114 views
0 votes
1 answer
+1 vote
1 answer
0 votes
1 answer

Can I create a load balancer with path based routing in GKE?

Yes, it's possible. Note that you simply will use the internal Load balancing (ILB) for ...READ MORE

answered Oct 10, 2019 in GCP by Sirajul
• 59,230 points
1,168 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP