Converting a single data center to a two data center deployment on Kubernetes
Instructions on how to convert a single data center to a two data center disaster recovery (2DCDR) deployment on Kubernetes.
Before you begin
Ensure that you understand the concepts of 2DCDR in API Connect. For more information, see Two data center warm-standby deployment on Kubernetes and OpenShift.
Download the operator files and custom resource definitions for use during installation onto both of your data centers. Ensure that you complete the instructions for Deploying operators and cert-manager, and set the same ingress-ca certificate in both data centers: Installing cert-manager and certificates in a two data center deployment.
Familiarize yourself with the instructions in Installing the API Connect subsystems. Follow these instructions along with the 2DCDR specific steps in this topic.
- API Connect is not supported on a FIPS-enabled environment.
- It is not possible to use the Automated API behavior testing application (Installing the Automated API behavior testing application) in a 2DCDR configuration (Two data center warm-standby deployment on Kubernetes and OpenShift).
About this task
You can convert a single data center API Connect to a 2DCDR deployment. Both data
centers must have the same portal-admin
and portal-www
endpoints.
The main difference is that the custom resource (CR) files for both the Management subsystem and the
Developer Portal subsystem on each data center must include a multiSiteHA
configuration section, and it's this section that determines the two data center DR deployment. It's
also this section that's used to control the deployment in the future, for example in failover and
recovery situations.
The following codeblocks show examples of completed multiSiteHA
sections in the
PortalCluster
CR files for two data centers, one active and one
warm-standby. Both the ManagementCluster
and the
PortalCluster
CR templates have a multiSiteHA
section containing
the placeholder $MULTI_SITE_HA
, and it is this placeholder that must be replaced
with the values for your deployment.
|
|
Configuration property | Description |
---|---|
mode |
The state of the data center in the context of the two data center deployment. Valid values
are:
|
|
Contains details of the external ingress name for the subsystem in the current data center in
the two data center deployment. The hosts |
replicationPeerFQDN |
The ingress hostname for the other data center in the two data center deployment. This information is required so that the two data centers can communicate with each other. |
|
The TLS client secret for the subsystem. |
siteName |
A descriptive name for the Portal subsystem, and the Management subsystem, in the current
data center, for example dallas . This name is used in the hostnames, and so can
contain only a-z and 0-9 characters. Note that you can set a
siteName in the ManagementCluster or
PortalCluster CR only when the subsystems are first deployed, and you cannot change
the name after deployment. If you don't set a siteName at first deployment, an
automated siteName is created for you. For example, if you are converting an
existing single Management cluster to a two data center Management cluster by adding the multi-site
HA values, you will not be able to configure a siteName for the existing Management
cluster. |
To install a two data center disaster recovery deployment, you must set all of the placeholder properties in the CR file for both the Management and the Developer Portal subsystems as detailed in the relevant topics in the Installing the API Connect subsystems section, as well as the properties in the multi-site HA section that are detailed here. Some examples of complete CR files are shown in the Example section.