Multi-Cluster configuration overview
To configure a multi-cluster topology you must perform the following actions:
- Install the Alauda Container Platform Networking for Multus plugin for each cluster, and kube-ovn must be v4.1.5 or later.
- Install the Alauda Service Mesh Operator for each cluster.
- The API Server in each cluster must be accessible to the other clusters in the mesh.
- Create or have access to root and intermediate certificates for each cluster.
- Apply the security certificates for each cluster.
- Install Istio for each cluster.
TOC
Creating certificates for a multi-cluster mesh
Create the root and intermediate certificate authority (CA) certificates for two clusters.
Prerequisites
- OpenSSL is installed locally.
Procedure
Create the root CA certificate
-
Create a key for the root certificate by running the following command:
-
Create an OpenSSL configuration certificate file named
root-ca.conffor the root CA certificates:Example root certificate configuration file
-
Create the certificate signing request by running the following command:
-
Create a shared root certificate by running the following command:
Create the intermediate CA certificate for the East cluster
-
Create a directory named
eastby running the following command: -
Create a key for the intermediate certificate for the East cluster by running the following command:
-
Create an OpenSSL configuration file named
intermediate.confin theeast/directory for the intermediate certificate of the East cluster. Copy the following example file and save it locally:Example configuration file
-
Create a certificate signing request by running the following command:
-
Create the intermediate CA certificate for the East cluster by running the following command:
-
Create a certificate chain from the intermediate and root CA certificate for the east cluster by running the following command:
Create the intermediate CA certificate for the West cluster
-
Create a directory named
westby running the following command: -
Create a key for the intermediate certificate for the West cluster by running the following command:
-
Create an OpenSSL configuration file named
intermediate.confin thewest/directory for the intermediate certificate of the West cluster. Copy the following example file and save it locally:Example configuration file
-
Create a certificate signing request by running the following command:
-
Create the intermediate CA certificate for the West cluster by running the following command:
-
Create a certificate chain from the intermediate and root CA certificate for the west cluster by running the following command:
Applying certificates to a multi-network multi-cluster mesh
Apply root and intermediate certificate authority (CA) certificates to the clusters in a multi-network multi-cluster topology.
In this procedure, CLUSTER1 is the East cluster and CLUSTER2 is the West cluster.
Prerequisites
- You have access to two clusters with external load balancer support.
- You have created the root CA certificate and intermediate CA certificates for each cluster or someone has made them available for you.
Procedure
Environment Variables
The following environment variables will be used throughout to simplify the instructions:
Set the two variables before proceeding:
Apply the certificates to the East cluster of the multi-cluster topology
-
Create a namespace called
istio-systemby running the following command: -
Create the CA certificates, certificate chain, and the private key for Istio on the East cluster by running the following command:
NOTEIf you followed the instructions in Creating certificates for a multi-cluster mesh, your certificates will reside in the
east/directory. If your certificates reside in a different directory, modify the syntax accordingly.
Apply the certificates to the West cluster of the multi-cluster topology
-
Create a namespace called
istio-systemby running the following command: -
Create the CA certificates, certificate chain, and the private key for Istio on the East cluster by running the following command:
NOTEIf you followed the instructions in Creating certificates for a multi-cluster mesh, your certificates will reside in the
west/directory. If your certificates reside in a different directory, modify the syntax accordingly.
Next Steps
Install Istio on all the clusters comprising the mesh topology.