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

Creating a cluster

Vedi come Markdown

Find out how to create a Kubernetes cluster managed by OVHcloud using the OVHcloud Control Panel, 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 Control Panel, 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 Control Panel Access

  • Direct link:
  • Navigation path: Public Cloud > Select your project > 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

Via OVHcloud Control Panel
Via the OVHcloud API
Via the OVHcloud CLI
Via Terraform
Via CDK for Terraform
Via Pulumi

Click on Managed Kubernetes Service in the left-hand menu and click Create a cluster.

Select a location for your new cluster.

Choose the minor version of Kubernetes.

Info

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

Optionally, integrate your cluster into a private network using OVHcloud vRack. Select an existing vRack network from the dropdown, or skip this step to configure private networking later. For more information, read our guide Using the vRack.

Configure the default 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.

Define the size of the default node pool: enter a name for the pool, choose an instance flavor (instance type), 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 mode.

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.

Enter a name for your cluster, review the summary, and click Send.

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

Via OVHcloud Control Panel
Via the OVHcloud API
Via the OVHcloud CLI
Via Terraform
Via CDK for Terraform
Via Pulumi

In your cluster page, open the Service tab and 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.

Via Terraform
Via 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)

Via OVHcloud Control Panel
Via the OVHcloud API
Via the OVHcloud CLI
Via Terraform
Via CDK for Terraform
Via Pulumi

In the Managed Kubernetes Service section, click the ... button next to your cluster and select 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.

Questa pagina ti è stata utile?