Installing API Connect on the active data center
Follow the installation steps for API Connect described in the Cloud Pak for Integration
documentation, adding the multiSiteHA
configuration to the API Connect
YAML.
Before you begin
Verify that all the secrets, certificates, and issuers are
ready:
oc get secrets -n <namespace> | grep <apic-instance-name>
<apic-instance-name>-ingress-ca kubernetes.io/tls 3 3d21h
<apic-instance-name>-mgmt-replication-client kubernetes.io/tls 3 3d21h
<apic-instance-name>-ptl-replication-client kubernetes.io/tls 3 3d21h
oc get certs -n <namespace> | grep <apic-instance-name>
<apic-instance-name>-ingress-ca True <apic-instance-name>-ingress-ca 3d21h 2032-08-15T13:01:47Z
<apic-instance-name>-mgmt-replication-client True <apic-instance-name>-mgmt-replication-client 3d21h 2024-08-17T13:04:27Z
<apic-instance-name>-ptl-replication-client True <apic-instance-name>-ptl-replication-client 3d21h 2024-08-17T13:04:26Z
oc get issuer -n <namespace> | grep <apic-instance-name>
<apic-instance-name>-ingress-issuer True 3d21h
<apic-instance-name>-self-signed True 3d21h
Where
<apic-instance-name>
is the name you intend to use for your API Connect cluster
CR, and <namespace>
is the namespace you created for API Connect.About this task
In the yaml files that are shown here, replace
<apic-instance-name>
with the name you intend to use for your API Connect
Cluster CR. As decided in Planning and initial preparation. Set
<active data center ingress domain>
and <warm-standby data center ingress
domain>
to their appropriate values, which can be determined by running this command in
each data
center:oc get ingresses.config/cluster -o jsonpath={.spec.domain}
Procedure
Results
Warning
state with
oc get mgmt
:oc get mgmt -n <namespace>
NAME READY STATUS VERSION RECONCILED VERSION MESSAGE AGE
management n/n Warning 10.0.8.0-0 10.0.8.0-0 Management is ready. HA Status Warning - see HAStatus in CR for details 8m59s
oc get mgmt -n <namespace> -o yaml
...
status:
haStatus
{
"lastTransitionTime": "2023-12-31T19:47:08Z",
"message": "Replication not working, install or upgrade in progress.",
"reason": "na",
"status": "True",
"type": "Pending"
}
Warning
until the warm-standby management subsystem
is deployed, and both management subsystems complete data replication. When you see the status
message Management is ready. HA Status Warning - see HAStatus in CR for details, you can move on to Installing API Connect on the warm-standby data center.
Note: The portal,
analytics, and gateway subsystems are not deployed until the management replication is complete and
the management CRs in both data centers report the following:
oc get mgmt -n <namespace>
NAME READY STATUS VERSION RECONCILED VERSION MESSAGE AGE
management n/n Running 10.0.8.0-0 10.0.8.0-0 Management is ready. HA status Ready - see HAStatus in CR for details 8m59s
oc get mgmt -n <namespace> -o yaml
...
status:
haStatus
{
"lastTransitionTime": "2023-03-31T19:47:08Z",
"message": "Replication is working",
"reason": "na",
"status": "True",
"type": "Ready"
}
What to do next
Extract the Cloud Pak for Integration credentials, and copy them to
your warm-standby data center:
Install API Connect on your warm-standby data center: Installing API Connect on the warm-standby data center.- Identify the secret that contains the Cloud Pak for Integration
credentials:
oc -n <namespace> get secrets | grep cp4i-creds
- Extract the credentials to a
file:
oc get secret <secret name> -o json | jq 'del(.metadata.creationTimestamp,.metadata.labels,.metadata.resourceVersion,.metadata.uid,.metadata.ownerReferences)' > cp4i-creds.json
where <secret name> is the secret you identified in step 1.
- Copy the cp4i-creds.json file to the warm-standby data center.