To configure a multi-cluster topology you must perform the following actions:
Create the root and intermediate certificate authority (CA) certificates for two clusters.
Prerequisites
Procedure
Create a key for the root certificate by running the following command:
Create an OpenSSL configuration certificate file named root-ca.conf
for the root CA certificates:
Create the certificate signing request by running the following command:
Create a shared root certificate by running the following command:
Create a directory named east
by 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.conf
in the east/
directory for the intermediate certificate of the East cluster. Copy the following example file and save it locally:
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 a directory named west
by 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.conf
in the west/
directory for the intermediate certificate of the West cluster. Copy the following example file and save it locally:
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:
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
Procedure
The following environment variables will be used throughout to simplify the instructions:
Variable | Alias | Description |
---|---|---|
CTX_CLUSTER1 | East | The context name in the default Kubernetes configuration file used for accessing the cluster1 cluster. |
CTX_CLUSTER2 | West | The context name in the default Kubernetes configuration file used for accessing the cluster2 cluster. |
Set the two variables before proceeding:
Create a namespace called istio-system
by running the following command:
Configure Istio to use network1
as the default network for the pods on the East cluster by 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:
If 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.
Create a namespace called istio-system
by running the following command:
Configure Istio to use network2
as the default network for the pods on the East cluster by 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:
If 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.
Install Istio on all the clusters comprising the mesh topology.