| copyright |
|
||
|---|---|---|---|
| lastupdated | 2026-08-31 | ||
| keywords | openshift, clusters, access, private, endpoint, classic, vpn | ||
| subcollection | openshift |
{{site.data.keyword.attribute-definition-list}}
{: #access-private-classic}
For {{site.data.keyword.redhat_openshift_notm}} 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. {: shortdesc}
{: #access-private-classic-prereqs}
- Install the required CLI tools.
- Set up a {{site.data.keyword.vpn_full}} connection to the IBM Cloud classic private network.
- Verify your cluster is healthy:
ibmcloud oc cluster get -c CLUSTER_NAME_OR_ID.
{: #access-private-classic-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
{: pre}
-
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
{: pre}