case missing gke-spot label is it spot=false?

97 Views Asked by At

I need to know id node is spot or not. I found I can collect this data from node labels but case inside node details there is no GKE key label:

cloud.google.com/gke-spot: "true" / "false".

whats its mean? its mean default is not spot? I cant find any support documentation related this. for example on EKS of AWS mentioned: "By default, if you don't specify a Capacity Type, the managed node group is provisioned with On-Demand Instances."

1

There are 1 best solutions below

0
Gari Singh On

GKE does not use Spot by default. If the cloud.google.com/gke-spot label does not exist on the node, it is not spot.

If you are running GKE 1.25.5-gke.2500 or later, checking cloud.google.com/gke-provisioning=spot would be the preferred approach as well.