Package com.morpheusdata.core.providers
Interface KubernetesClusterProvider.CloudScalingFacet
- Enclosing interface:
- KubernetesClusterProvider
public static interface KubernetesClusterProvider.CloudScalingFacet
Implement this facet to delegate node-count changes to the cloud's managed autoscaling / node
group API instead of Morpheus provisioning individual nodes. Providers that implement this facet
should also return
true from ClusterProvider.supportsCloudScaling().
This is the seam currently represented by doCloudScaling (EKS, AKS, GKE).
-
Method Summary
Modifier and TypeMethodDescriptionscaleCluster(ComputeServerGroup cluster, Long desiredNodeCount, Map opts) Scale the cluster to the desired node count using the cloud-managed scaling API.
-
Method Details
-
scaleCluster
Scale the cluster to the desired node count using the cloud-managed scaling API.- Parameters:
cluster- the cluster to scaledesiredNodeCount- the target number of nodesopts- additional, provider-specific options- Returns:
- a
ServiceResponseindicating success or failure
-