Kubernetes Cluster Autoscaling
このページは日本語には対応しておりません。随時翻訳に取り組んでいます。
翻訳に関してご質問やご意見ございましたら、
お気軽にご連絡ください。
Join the Preview!
Datadog Kubernetes Cluster Autoscaling is in Preview. Use this form to submit your request today.
Request AccessDuring the Preview period, Datadog recommends non-production use only of Datadog Kubernetes Autoscaling.
Requirements
Datadog Agent v7.75+
Datadog Operator v1.23.0+ or Datadog Helm chart v3.155.1+
Remote Configuration must be enabled both at the organization level and on the Agents in your target cluster. See Enabling Remote Configuration for setup instructions.
Datadog user permissions:
- Org Management
- API Keys Write
- Autoscaling Manage
By default, all Datadog admin users have Autoscaling Manage, and all Datadog users have read access to view recommendations and reporting.
To grant Autoscaling Manage to an additional standard or custom role user, see Datadog Role Permissions for instructions.
Setup
Activate Cluster Autoscaling.
Set features.autoscaling.cluster.enabled to true in your DatadogAgent spec.
spec:
features:
autoscaling:
cluster:
enabled: true
Set datadog.autoscaling.cluster.enabled to true in your datadog-values.yaml file.
datadog:
autoscaling:
cluster:
enabled: true
Then run helm upgrade.
If you do not have an existing installation of Karpenter, install the Datadog kubectl plugin. This plugin assists in installing or connecting to your existing Karpenter configuration.
kubectl krew install datadog
Run the kubectl plugin and pass in AWS credentials for the AWS project that the cluster is running:
AWS_PROFILE=<foo> AWS_REGION=<bar> kubectl datadog autoscaling cluster install
This command creates:
- Two CloudFormation stacks named
dd-karpenter-$CLUSTER_NAME - A Helm release named
karpenter in the Kubernetes namespace dd-karpenter - Karpenter’s
EC2NodeClass and NodePool objects
For more detailed command options, run kubectl datadog autoscaling cluster install --help.
Autoscale a cluster
In Datadog, navigate to Kubernetes Autoscaling. You can review all your clusters that are available for autoscaling on the Autoscaling Settings page. Toggle the Enabled column for your cluster of choice.
Use the Cluster Scaling page and select a cluster to review its recommendations. Identify a cluster you want to begin optimizing. During the Preview period, Datadog recommends selecting a non-production cluster.
Click Start Autoscaling to apply recommendations.