Multi Cloud Management with CNO Hub
Multi cloud management in CNO includes two types of processing. CNO Hub centralizes clusters in order to manage them. We can directly import an existing cluster from an existing cloud provider in CNO. We call it a managed cluster.
We can also create a new cluster from any provider which is not already configured in CNO or import a cluster which is not managed by a provider. We call them custom clusters.
Since we have two types of management, we are going to show how to add clusters to CNO Hub.
On premises cluster (Kubernetes, Tanzu or Openshift)
The goal of this scenario is to deploy a cluster (Kubernetes) in CNO in order to manage it. CNO provides a way to import clusters from providers which are not directly attached to it.
Objectives:- Import a cluster from a non-managed Kubernetes cluster
- Install CNO agent on this cluster
- Connect to cnoctl command line to use commands in the tutorial
- Make sure to switch to the good context before the installation
USE CASE
Adding a custom cluster means creating a new cluster from a non managed provider.
We are going to create an Openshift cluster named “myclustertest”.- First, make sure that you have an existing configured Openshift service from which we want to create the cluster
-
After that, we are going to create the cluster using the simple command:
cnoctl adm add custom-cluster --name myclustertest --type openshift --api-url https://myclustertest:654 --version 1.0.0-rc -- kubeconfig ./kube/config
name
: The name of the cluster | [REQUIRED]type
: The type of cluster (gke, aks, eks, kubernetes, openshift…) | [REQUIRED]api-url
: An url from which we will have access to the cluster | [REQUIRED]version
: The cno version to install | [REQUIRED]kube-config
: The kube configuration used to install the cluster | [OPTIONAL]install-ingress-controller
: Use to choose or not to install a nginx ingress controller | [OPTIONAL]
-
We can know check if our cluster has been added by using the following command
cnoctl adm get custom-cluster myclustertest
name
: The name of the cluster from which we want to retrieve information | [REQUIRED]
Managed Clusters (AWS, Azure and GCP)
In this tutorial, we are going to show how to add a new cluster to manage from an existing AWS provider. Adding a managed cluster means retrieving it from a cloud provider in order to manage it from CNO.
Objectives:- Import a cluster from an existing provider in CNO
USE CASE
We have a cluster called “myclustertest” on the “Ireland” region on the existing provider “myaws”
We are going to import in CNO.-
First, we have to check if a cluster is available in the provider from which we want to import it. To make this verification we use the following command:
(Command to add)
-
After making sure that the cluster is available, we are going to import it using the simple command:
cnoctl adm add managed-cluster --cloud-provider myaws --cluster-name myclustertest --region eu-west-1
cloud-provider
: The cloud provider from which we retrieve the cluster | [REQUIRED]cluster-name
: The name of the cluster to retrieve | [REQUIRED]region
: Region where the cluster is located | [OPTIONAL]
-
Now, we can check if our cluster has been added for managing using the following command:
cnoctl adm get managed-cluster myclustertest
name
: The name of the cluster from which we want to retrieve information | [REQUIRED]