Kruise workloads, such as CloneSet, Advanced StatefulSet, UnitedDeployment, are all implemented scale subresource, which means they allow systems like HorizontalPodAutoscaler and PodDisruptionBudget interact with these resources.
Just set the CloneSet's type and name into
- The HPA's namespace should be same as the namespace of your CloneSet.
scaleTargetRefshould be same as the
apiVersionin your workload resource, such as
apps.kruise.io/v1beta1. It depends on which version you are using for those workloads that have multiple versions, such as Advanced StatefulSet.