cluster-autoscaler/cloudprovider/digitalocean/README.md
The cluster autoscaler for DigitalOcean scales worker nodes within any specified DigitalOcean Kubernetes cluster's node pool. This is part of the DOKS offering which can be enabled/disable dynamically for an existing cluster.
The (JSON) configuration file of the DigitalOcean cloud provider supports the following values:
cluster_id: the ID of the cluster (a UUID)token: the DigitalOcean access token literally definedtoken_file: a file path containing the DigitalOcean access tokenurl: the DigitalOcean URL (optional; defaults to https://api.digitalocean.com/)Exactly one of token or token_file must be provided.
Parameters of the autoscaler (such as whether it is on or off, and the minimum/maximum values) are configured through the public DOKS API and subsequently reflected by the node pool objects. The cloud provider periodically picks up the configuration from the API and adjusts the behavior accordingly.
Make sure you're inside the root path of the autoscaler repository
1.) Build the cluster-autoscaler binary:
GOARCH=amd64 make build-in-docker
2.) Build the docker image:
docker build --platform linux/amd64 -f Dockerfile.amd64 -t digitalocean/cluster-autoscaler:dev .
3.) Push the docker image to Docker hub:
docker push --platform linux/amd64 digitalocean/cluster-autoscaler:dev