Creating a cluster

View as 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

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.

Create a cluster

Select a location for your new cluster.

Select a location

Choose the minor version of Kubernetes.

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. For more information, read our guide Using the vRack.

Choose a private network for this cluster

Configure the default node pool. A node pool is a group of nodes sharing the same configuration. Read the Managing node pools guide for more information.

Node pool

Define the size of the default node pool.

Default node pool

Optionally, enable Autoscaling and define the minimum and maximum pool size.

Autoscaling

Choose the billing mode (monthly or hourly) and optionally enable anti-affinity mode.

Choose the billing 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 and click Send.

Enter a name for your 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

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.

  • If you need training or technical assistance to implement our solutions, contact your sales representative or go to the Professional Services page to get a quote and ask our Professional Services experts to assist you with your project.

  • Join our community of users.

Was this page helpful?