Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudProvider ¶
type CloudProvider struct {
// contains filtered or unexported fields
}
func NewCloudProvider ¶
func NewCloudProvider(ctx context.Context) (*CloudProvider, error)
NewCloudProvider creates a new GCP cloud provider
func (*CloudProvider) DeleteInstance ¶
DeleteInstance drains any connections from GCP load balancers, retrieves the underlying compute instance of the Kubernetes Node and then deletes it from its managed instance group
func (*CloudProvider) IsSpotInstance ¶
IsSpotInstance determines whether the underlying compute instance is a spot VM. We consider preemptible VMs to be spot VMs to align with the cluster autoscaler: https://github.com/kubernetes/autoscaler/blob/10fafe758c118adeb55b28718dc826511cc5ba40/cluster-autoscaler/cloudprovider/gce/gce_price_model.go#L220-L230
Click to show internal directories.
Click to hide internal directories.