diff --git a/cluster-autoscaler/cloudprovider/azure/README.md b/cluster-autoscaler/cloudprovider/azure/README.md index c19bdda66e46..9854802a43a3 100644 --- a/cluster-autoscaler/cloudprovider/azure/README.md +++ b/cluster-autoscaler/cloudprovider/azure/README.md @@ -278,7 +278,7 @@ Please see the [AKS autoscaler documentation][] for details. ## Rate limit and back-off retries -The new version of [Azure client][] supports rate limit and back-off retries when the cluster hits the throttling issue. These can be set by environment variables or cloud config file. +The new version of [Azure client][] supports rate limit and back-off retries when the cluster hits the throttling issue. These can be set by either environment variables, or cloud config file. With config file, defaults values are false or 0. | Config Name | Default | Environment Variable | Cloud Config File | | ----------- | ------- | -------------------- | ----------------- | diff --git a/cluster-autoscaler/cloudprovider/azure/azure_util.go b/cluster-autoscaler/cloudprovider/azure/azure_util.go index ba3c0ac1d539..c0f625b7e68c 100644 --- a/cluster-autoscaler/cloudprovider/azure/azure_util.go +++ b/cluster-autoscaler/cloudprovider/azure/azure_util.go @@ -560,6 +560,10 @@ func validateConfig(cfg *Config) error { return fmt.Errorf("ARM Client ID not set") } + if cfg.CloudProviderBackoff && cfg.CloudProviderBackoffRetries == 0 { + return fmt.Errorf("Cloud provider backoff is enabled but retries are not set") + } + return nil }