Getting Started with Managed Rancher Service

Bases de conhecimento

Getting Started with Managed Rancher Service


Icons/System/eye-open Created with Sketch. 202 visualizações 24.06.2025 Managed Rancher Service (MRS)

Objective

Container orchestration has become a cornerstone of modern application deployment, offering scalability, flexibility, and resource efficiency. Rancher is an open-source container management platform that simplifies the deployment and management of Kubernetes clusters. Managed Rancher Service by OVHcloud provides a powerful platform for orchestrating Kubernetes clusters seamlessly. In this Getting Started guide we will explore the intricacies of setting up and managing container clusters.

Requirements

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.

Instructions

Rancher Creation and Access

To initiate your journey, log in to the OVHcloud Control Panel and open the Public Cloud section. Then access the Managed Rancher Service under the Containers & Orchestration section. Using the OVHcloud Control Panel you can trigger the creation of a Rancher which will be operated and managed by OVHcloud.

Simply click on the Create button at the top right of the Control Panel and follow the steps below:

  1. Define your Rancher's name.
  2. Select your Plan between OVHcloud Edition (coming soon) and Standard.
  3. Select the Rancher version.
  4. Click on Create.
  5. Wait for your Rancher to be created.
  6. Access the details of your newly created Rancher by clicking on its name.
  7. In the "Security and Access" section, click on Generate access details, confirm, then click Access Rancher UI.
  8. Copy/Paste the provided credentials on the Rancher login page. Note: you will need to change your password at first login. In case of lost password, you have the possibility to generate a new one by using the Generate access details action button.

You now have access to the Rancher dashboard. It is designed to offer an intuitive and comprehensive view of your containerized environment. This web-based interface serves as your command center for orchestrating containers & clusters, visualizing cluster health and managing various aspects of your Kubernetes infrastructure. Explore the navigation menu, which includes sections for clusters, projects, applications and Rancher settings.

As it is a brand new Rancher instance you do not have any downstream Kubernetes cluster. The next step will describe how to add one. To do so, you have two options: Importing an existing Kubernetes cluster or creating a new cluster using Rancher.

Creating or importing a Kubernetes cluster

Creating a Kubernetes cluster with Rancher

Using this option you will be able to create a Kubernetes cluster from scratch. Rancher simplifies the creation of clusters by allowing you to create them through the Rancher UI rather than more complex alternatives. You can use Rancher to launch a Kubernetes cluster on any platform and location including:

  • Hosted Kubernetes provider (e.g. OVHcloud Managed Kubernetes Service, AWS EKS, GCP GKE, etc).
  • Infrastructure Provider - Public Cloud or Private Cloud (vSphere, Nutanix, etc).
  • Bare-metal servers, cloud hosted or on premise.
  • Virtual machines, cloud hosted or on premise.

For the last three options, when Rancher deploys Kubernetes onto these nodes, you can choose between the Rancher Kubernetes Engine (RKE2) or K3s distributions.

Follow the official Rancher documentation on How to launch Kubernetes with Rancher. This documentation explains how to define cluster settings, the number of nodes (master, worker, etcd), authentication and other additional configuration.

We will detail below how to use OVHcloud as a Hosted Kubernetes provider and Infrastructure Provider using our official OVHcloud Drivers.

Use OVHcloud as a Hosted Kubernetes Provider

Deploying to OVHcloud will incur charges. For more information, refer to the MKS and Compute pricing pages. Once your Managed Kubernetes clusters are created, we do recommend performing all actions (upgrade, nodepool management, cluster modification) from the Rancher console and not performing any action directly via the OVHcloud API or the OVHcloud Control Panel as this can lead to desynchronizations.

On this part we will detail how to use Rancher to create and manage OVHcloud Managed Kubernetes Service clusters.

  1. From the Rancher Homepage, click on Create.

Rancher Homepage

2. Use the OVHcloud Hosted Kubernetes provider by clicking on OVHcloud MKS.

Cluster Creation

3. Set the parameters of your MKS cluster:

Cluster Creation

You need to provide the following parameters:

FieldMandatoryDescription
NameYesName of the Managed Kubernetes Service Cluster that will be created.
Member RolesYes, default value is okConfigure user authorization for the cluster. Click Add Member to add users that can access the cluster. Use the Role drop-down menu to set permissions for each user.
Label & AnnotationsNoAdd Kubernetes labels or annotations to the cluster.
Account ConfigurationYesProvide your OVH API credentials, you can follow our guide on how to Generate your OVHcloud API keys.
We advise you to set at least the following rights to your new token:
GET=/cloud/project/{YOUR_PROJECT_ID}*
PUT=/cloud/project/{YOUR_PROJECT_ID}/kube*
POST=/cloud/project/{YOUR_PROJECT_ID}/kube*
DELETE=/cloud/project/{YOUR_PROJECT_ID}/kube*
Application KeyYesRefer to the guide provided above. Value is provided at the API keys generation step on https://www.ovh.com/auth/api/createToken.
Consumer KeyYesRefer to the guide provided above. Value is provided at the API keys generation step on https://www.ovh.com/auth/api/createToken.
Application SecretYesRefer to the guide provided above. Value is provided at the API keys generation step on https://www.ovh.com/auth/api/createToken.
Public Cloud project IDYesThe projectID of the OVHcloud project where your MKS cluster will be deployed. You can follow the guide on How to create your first Project or if already existing, you can copy/paste it from the OVHcloud Control Panel or API
OVH API EndpointYesSelect the OVHcloud subsidiary (EU, US, CA)

4. Move to Cluster Configuration

MKS Driver Cluster Configuration

Provide the following parameters:

  • The Region where your cluster will be deployed.
  • The Kubernetes Version. Only versions supported by Rancher current version are listed (you can refer to the Official Support Matrix).
  • The Update Policy you want to define for your managed cluster (for more information, refer to the Managed Kubernetes Update Policies guide).

5. Move to Network Configuration

MKS Driver Cluster Configuration

Provide the following parameters:

  • The Private Network ID for your MKS cluster. Select an existing OVHcloud Public Cloud private network or choose None to create a cluster with nodes using only public interfaces.
  • The Default vRack Gateway (optional). Leave it empty to use the default gateway of your Private Network.
  • The Private Network Routing As Default state. Activate this feature if you want to use an OVHcloud Managed Gateway or a custom Gateway as a single exit point for your MKS nodes.

6. Move to NodePools Configuration

MKS Driver Cluster Configuration

Provide the following parameters:

  • The Name of the NodePool. It must be unique inside a same MKS cluster.
  • The OVHcloud Instance Flavor used by this NodePool.
  • The Autoscaling state. If the autoscaling is enabled, it will display the minimum and maximum number of nodes instead.
  • The Size of your NodePool (number of nodes that will be created).
  • The Monthly Billing state (hourly by default).

Then click on Add Node Pool. You can add multiple NodePools and then manage your list of Nodepools (note that the Delete action button of your first NodePool is grayed out until a second one is created).

7. Click on Finish & Create Cluster.

8. From the home page your cluster is now in Provisioning state

MKS Driver Cluster Configuration

From the Cluster Management page, wait for your cluster to become Active.

MKS Driver Cluster Configuration

MKS Driver Cluster Configuration

Your cluster is now fully functional. You can click on the Explore button to manage your MKS Cluster.

Use OVHcloud as an Infrastructure Provider

On this part we will detail how to use Rancher to create and manage Kubernetes clusters based on OVHcloud Public Cloud Compute Instances.

Deploying to OVHcloud will incur charges. For more information, refer to the MKS and Compute pricing pages.

1. From the Rancher Homepage, click on Create.

Rancher Homepage

2. Use the OVHcloud Infrastructure Provider by clicking on OVHcloud Public Cloud under the "Provision new nodes and create using RKE2/k3s" section:

Cluster Creation

3. Create your cloud credentials

Cluster Creation

Provide the following parameters:

Once created, the cloud credentials will be used to provision nodes in your cluster. You can reuse these credentials for other node templates or in other clusters.

4. Click on Get Project List and select the Project were you want to create your cluster.

5. Click on Continue.

6. Set your Cluster Name and Cluster Description.

Public Cloud Driver - Cloud Credentials

7. Create a Machine Pool for each Kubernetes role. Refer to the following guides for recommendations on role assignments and counts:

Cluster Creation

For each machine pool, define the machine configuration by providing the following parameters:

  • Pool Name - Name of the Machine Pool.
  • Machine Count - Number of instances.
  • Roles - etcd, Control Plane or Worker. You can refer to the Node Roles documentation.
  • Region - The OVHcloud Public Cloud region. If you want to check the availability of specific products that you plan to use alongside Kubernetes, you can refer to the Availability of Public Cloud Product page.
  • Flavor - The instance flavor used for your nodes. You can refer to the OVHcloud Flavor list.
  • Image - The Operating System image used for your nodes. Please refer to Rancher Operating Systems and Container Runtime Requirements.
  • Key Pair (optional) - The SSH Key Pair that should be used to access your nodes. Please refer to this guide on how to create a SSH KeyPair and add it to your Public Cloud project. If you leave this field empty, a new keypair will be generated automatically.
  • Security Group - The security group from your Public Cloud project that will be applied to created instances.
  • Availability Zone - Only nova is supported at the moment.
  • Floating IP Pools - Only Ext-Net is supported at the moment.
  • Networks - The Public Cloud private Network to which created instances will be attached. The selected network needs to have a gateway configured.
  • SSH user ID - Username that will be used to access your nodes through SSH.

8. Use the Cluster Configuration to choose the version of Kubernetes that will be installed, which network provider will be used and if you want to enable project network isolation. For help configuring the cluster, refer to the RKE2 cluster configuration reference. Use Member Roles to configure user authorization for the cluster. Click Add Member to add users that can access the cluster. Use the Role drop-down menu to set permissions for each user.

9. Click Create.

Importing an existing Kubernetes cluster

For organizations with pre-existing Kubernetes clusters, Rancher simplifies integration. Import your clusters seamlessly, wherever they are deployed, allowing Rancher to take over the management responsibilities. This process facilitates the transition to Rancher without disrupting your existing infrastructure.

You can refer to the official Rancher documentation on how to Register Existing Cluster.

Importing an existing OVHcloud Managed Kubernetes Service cluster

If you already use our OVHcloud Managed Kubernetes Service, you can easily import an existing cluster. The workflow is similar to the one described on the official Rancher documentation on how to register a cluster and it takes only a few minutes.

1. From the Rancher home page, click on Import Existing.

Rancher Homepage

2. Select Generic

Import Cluster

3. Set the Cluster Name (it is not mandatory to match the name of your existing MKS cluster) then click on Create

Import Cluster Form

4. Follow the instructions provided on the Registration tab.

Register Cluster Instructions

Run the provided kubectl command on an existing Managed Kubernetes Service cluster that is running a supported Kubernetes version to import it into Rancher:

kubectl apply -f https://rancher.ovh.net/v3/import/file.yaml
  clusterrole.rbac.authorization.k8s.io/proxy-clusterrole-kubeapiserver unchanged
  clusterrolebinding.rbac.authorization.k8s.io/proxy-role-binding-kubernetes-master unchanged
  namespace/cattle-system created
  serviceaccount/cattle created
  clusterrolebinding.rbac.authorization.k8s.io/cattle-admin-binding created
  secret/cattle-credentials-ac3c0a4 created
  clusterrole.rbac.authorization.k8s.io/cattle-admin created
  deployment.apps/cattle-cluster-agent created
  service/cattle-cluster-agent created

5. Wait until your cluster becomes available:

Cluster Dashboard

6. Your cluster is now federated on your Rancher. You can click on Explore to manage your MKS cluster.

Deploying applications with Rancher

Now that your clusters are set up, leverage Rancher's user-friendly interface to deploy applications effortlessly. Define workloads, services, and deployment strategies within the Rancher UI. Explore the extensive catalog of pre-configured application templates to simplify and optimize your application deployment process. To access the application catalog, explore your federated downstream Kubernetes cluster and click on Apps/Charts in the left panel.

App Catalog

Managing resources

Rancher empowers you with robust tools for resources management. Monitor the nodes health, track resources utilization, and scale applications dynamically as demand fluctuates. The centralized control provided by Rancher ensures efficient resource allocation across your Kubernetes clusters.

Monitoring and troubleshooting

Dive into Rancher's monitoring capabilities to gain real-time insights into the performance of your clusters and applications. Use logging features and diagnostic tools to troubleshoot issues promptly. Rancher's comprehensive monitoring suite ensures you can proactively address potential challenges.

Regular updates and maintenance

Stay informed about updates to Rancher and OVHcloud Managed Rancher Service features. Regularly check for new releases, security patches and optimizations. This proactive approach ensures that your container orchestration environment remains secure, efficient, and aligned with the latest industry standards.

Conclusion

Rancher, when used within the OVHcloud Cloud environment, offers a fully managed solution for containers orchestration. By following these detailed steps, you will not only establish a robust Kubernetes infrastructure but also harness the full potential of Rancher's features within the unique context of OVHcloud Public Cloud. Happy Ranchering!

Go further

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

  • If you need training or technical assistance to implement our solutions, contact your sales representative or click on this link to get a quote and ask our Professional Services experts for assisting you on your specific use case of your project.

  • Our team remains available on our dedicated Discord Channel, do not hesitate to join and reach us : https://discord.gg/ovhcloud. Ask questions, provide feedback and interact directly with the team that builds our Container and Orchestration services.

  • Join our community of users.

Artigos relacionados