For AI agents: the complete documentation index is available at https://docs.ovhcloud.com/en/llms.txt, the full documentation bundle is available at https://docs.ovhcloud.com/en/llms-full.txt, and this page is available as Markdown at https://docs.ovhcloud.com/en/guides/public-cloud/containers-orchestration/managed-kubernetes/create-cluster.md.
Skip to content

Creating a cluster

View as Markdown

Find out how to create a Kubernetes cluster managed by OVHcloud using the OVHcloud Console, API, CLI, Terraform, Pulumi or CDK for Terraform

Objective

The OVHcloud Managed Kubernetes service lets you deploy production-ready clusters without the operational overhead of setting them up or maintaining them. Create a cluster through the OVHcloud Console, API, or CLI, or automate the process using Infrastructure as Code tools like Terraform, Pulumi or CDK for Terraform.

Requirements

Tip

Take advantage of reduced prices by committing to a period of 1 to 36 months on your Public Cloud resources. More information on our Savings Plans page.


OVHcloud Console Access

  • Direct link:
  • Navigation path: Public Cloud > Select your project > Containers > Managed Kubernetes Service

Info

The OVHcloud API, CLI, Terraform, CDK for Terraform, and Pulumi all require OVHcloud API credentials (application_key, application_secret, consumer_key). Follow First steps with the OVHcloud APIs to generate them.

Instructions

OVHcloud Console
OVHcloud API
OVHcloud CLI
Terraform
CDK for Terraform
Pulumi

In your Public Cloud project, click on Managed Kubernetes Service under Containers in the left-hand menu, then click Create a cluster. All the settings are on the Create a Kubernetes cluster page:

  • Cluster name: enter a name for your cluster.
  • Region: select a deployment mode (1-AZ or 3-AZ region) and a location for your new cluster.
  • Plan: choose the Free or Standard plan (Compare plans gives the details).
  • Version and security policy: choose the minor version of Kubernetes and the automatic update policy.
Info

We recommend always using the latest stable version. Please read our End of life / end of support page to understand our version policy.

  • Network settings: optionally, integrate your cluster into a private network using OVHcloud vRack by selecting an existing private network and subnet. For more information, read our guide Using the vRack.
  • Node pools: click Add node pool to configure a node pool. A node pool is a group of nodes sharing the same configuration. You can add a node pool now or skip this step to add one later. Read the Managing node pools guide for more information.

For each node pool, enter a Node pool name, select an instance model, and set the Number of nodes. Optionally, enable Autoscaling and define the minimum and maximum pool size. Choose the billing mode (Monthly or Hourly) and optionally enable Anti-affinity.

Info

Anti-affinity distributes nodes across different hypervisors for higher fault tolerance. Anti-affinity node pools are limited to 5 nodes. Monthly billing cannot be switched to hourly afterwards.

Review the summary and click Create Cluster.

The cluster is available within a few minutes.

Warning

After a cluster is created, the region and private network ID cannot be changed.

Connect to the cluster

OVHcloud Console
OVHcloud API
OVHcloud CLI
Terraform
CDK for Terraform
Pulumi

On your cluster page, in the Connection information card of the Overview tab, click Download next to kubeconfig to download the kubectl configuration file to connect to your cluster.

Known issues

"not enough xxx quotas"

By default, Public Cloud resource quotas (RAM, CPU, disk space, number of instances, etc.) are limited for security reasons. If you run out of resources when creating a node pool, follow Increasing Public Cloud quotas to increase them.

Terraform
Pulumi

"gzip: invalid header"

This error occurs when a node pool name or flavor name contains _ or .. Only lowercase characters, digits and - are accepted:

name        = "my-pool"
flavor_name = "b2-7"

Destroy (cleanup)

OVHcloud Console
OVHcloud API
OVHcloud CLI
Terraform
CDK for Terraform
Pulumi

Click the name of your cluster in the Managed Kubernetes Service section. In the Manage cluster card of the Overview tab, click Delete, type TERMINATE in the confirmation field, then click Delete.

Go further

To have an overview of OVHcloud Managed Kubernetes service, you can go to the OVHcloud Managed Kubernetes page.

To deploy your first application on your Kubernetes cluster, we invite you to follow our guide to configuring default settings for kubectl and deploying a Hello World application.

  • For training or technical assistance implementing our solutions, contact your sales representative or visit our Professional Services page to request a quote and have your project analysed by our experts.

  • Join our community of users.

Was this page helpful?