Installer l'opérateur Kubernetes pour les services Analytics (EN)
Objective
The kubernetes database operator allows you to automaticaly authorize your Kubernetes cluster IP on your OVHcloud Analytics service.
This guide explains how to install and use the database operator in order to authorize the Kubernetes IP on your service
Requirements
- Access to the OVHcloud API. Create your credentials using our First Steps with the OVHcloud API guide.
- A Public Cloud project in your OVHcloud account
Getting your OVHcloud API tokens information
In order to generate your OVHcloud API, please follow our First steps with the OVHcloud APIs tutorial.
Specifically, you have to generate these credentials via the OVHcloud token generation page with the following rights:
GET /cloud/project/*/database/*POST /cloud/project/*/database/*PUT /cloud/project/*/database/*DELETE /cloud/project/*/database/*
Instructions
The Kubernetes database operator is stored as an Helm chart in Docker Hub, an OCI registry.
Helm Values
The first step is to create a values.yaml.
Please replace the XXXX with the credentials you previously retrieved.
Note that the region value is either ovh-eu, ovh-ca or ovh-us.
Installation
Use the kubernetes package manager helm and the values file you created to install the operator.
This command will create the operator, CRDs and secret objects.
You can find the latest version of the helm chart on DockerHub.
You can verify the operator is correctly installed by checking the Pods in the new Kubernetes namespace:
And that the secret with your OVHcloud credentials is properly created:
Creating custom resources
Create a custom resource object:
Or with a label selector to cherry pick your nodes based on label:
The serviceId field is optional. If not set, the operator will be run against all the services of your project.
Apply it to the cluster:
You can check it has been properly created using this command:
Nodes Labels
You can use Kubernetes labeling in order to select specific Nodes that you want the operator to be run against.
The created CR and the Node must have the same label and value.
Go further
We want your feedback!
We would love to help answer questions and appreciate any feedback you may have.
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 a custom analysis of your project.
Are you on Discord? Connect to our channel at https://discord.gg/ovhcloud and interact directly with the team that builds our analytics service!
Join our community of users.