Accessing Classic clusters through the private cloud service endpoint
For Red Hat OpenShift Classic clusters that have only the private cloud service endpoint enabled, you must be connected to the IBM Cloud classic private network through a VPN connection to access the cluster.
Before you begin
- Install the required CLI tools.
- Set up a Virtual Private Network (VPN) for VPC connection to the IBM Cloud classic private network.
- Verify your cluster is healthy:
ibmcloud oc cluster get -c CLUSTER_NAME_OR_ID.
Accessing a private Classic cluster from the CLI
-
Connect to the IBM Cloud classic private network using your VPN client.
-
Set the cluster context using the private endpoint.
ibmcloud oc cluster config -c CLUSTER_NAME_OR_ID --endpoint private -
Log in to the cluster.
- As admin:
ibmcloud oc cluster config -c CLUSTER_NAME_OR_ID --admin --endpoint private - With a passcode:
oc login -u passcode -p <iam_passcode> --server=<private_master_URL> - With an API key: See Accessing clusters from automation tools.
- As admin:
-
Verify access.
oc version