Import OpenShift Cluster
Supports integrating deployed OpenShift clusters into the platform for unified management.
TOC
Prerequisites
-
The Kubernetes version and parameters of the cluster must meet the Standard Kubernetes Cluster Requirements.
-
During integration,
kubectlcommands are required. Please install the CLI tool on the bastion host that can access the cluster. -
To enable real-time monitoring of metrics such as nodes, workloads (Deployment, StatefulSet, DaemonSet), Pods, and containers, ensure Prometheus is already deployed in the target cluster.
Obtain Registry Address
-
To use the registry deployed by the platform during global cluster installation, run the following command on a global control node:
-
To use an external registry, manually set the REGISTRY variable:
Check if Extra Registry Config is Needed
-
Run the following command to check if the registry supports HTTPS and uses a trusted CA certificate:
-
If the check fails, follow the steps below.
Trust Insecure Registry
-
Log in to all OCP cluster nodes.
-
On each node, configure the registry settings:
-
Restart
crio:
Configure DNS for the Cluster
Modify the CoreDNS ConfigMap in the global cluster to configure DNS.
-
From the bastion host, get the OCP cluster base domain:
Example output:
-
Log in to the platform management console, switch to the global cluster, then go to Cluster Management > Resource Management.
-
Edit the
cpaas-corednsConfigMapin thekube-systemnamespace.Add a new block using the OCP base domain and DNS server address (from
/etc/resolv.confon a cluster node).Example:
Get Cluster Info
Choose one of the following:
Method 1 (Recommended): Get the KubeConfig File
-
On the bastion host, search for the
kubeconfigfile and verify it contains an admin context. -
Copy the kubeconfig file from the bastion host to your local machine:
Method 2: Use Token, API Server Address, and CA Certificate
See How to fetch cluster information?.
Import Cluster
-
In the left navigation, go to Cluster Management > Clusters.
-
Click Import Cluster.
-
Configure the parameters:
-
Click Check Connectivity.
-
If successful, click Import. Progress can be viewed in the execution log. Once imported, the cluster appears healthy in the list.
Network Configuration
Ensure network connectivity between the global cluster and the imported cluster. See Network Configuration for Imported Clusters.
Deploy Add-ons
After successful integration, go to Marketplace to deploy required add-ons such as monitoring, log collection, and log storage.
Before deploying log collection, ensure /var/cpaas/ has more than 50GB free space:
Update Audit Policy
You can modify the audit policy (spec.audit.profile) of the cluster:
- Default: logs metadata of read/write requests (OAuth access token creation logs the body).
- WriteRequestBodies: logs metadata for all requests and bodies of write requests.
- AllRequestBodies: logs metadata and bodies of all requests.
Sensitive resources (e.g., Secrets, Routes, OAuthClient) only log metadata.
Update with:
FAQ
Why is the "Add Node" button disabled?
Adding nodes via the platform UI is not supported. Use the vendor's method.
Which certificates are supported?
- Kubernetes Certificates: Only API Server certificates are visible, no auto-rotation.
- Platform Component Certificates: Visible and auto-rotated.
Which features are unsupported for OpenShift clusters?
- Audit data collection.
- ETCD, Scheduler, Controller Manager monitoring (only API Server metrics available).
- Certificates other than API Server.