Search code examples
networkinggoogle-kubernetes-enginecalicogke-networking

Find out GKE Calico policy?


I have GKE cluster running with Version - 1.19.9-gke.1900 and trying to find out what type of Calcio policy is being used? I read through articles, calico provides different policy and below are the one's.

  • VPC Native Calico with host-local IPAM

  • GCP netd with Calico and host-local IPAM

  • calico overlay with Calico IPAM

For my GKE cluster - how will I be able to find which above calico policy is being used?


Solution

  • For this you can use calicoctl , and, as per their usage reference

      calicoctl get policy
    

    Will list all policy in default output format. It worked for me with a cluster I had previously that used Calico.