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 Type
    Method
    Description
    scaleCluster(ComputeServerGroup cluster, Long desiredNodeCount, Map opts)
    Scale the cluster to the desired node count using the cloud-managed scaling API.
  • Method Details

    • scaleCluster

      ServiceResponse scaleCluster(ComputeServerGroup cluster, Long desiredNodeCount, Map opts)
      Scale the cluster to the desired node count using the cloud-managed scaling API.
      Parameters:
      cluster - the cluster to scale
      desiredNodeCount - the target number of nodes
      opts - additional, provider-specific options
      Returns:
      a ServiceResponse indicating success or failure