Accessing VPC clusters through the private cloud service endpoint
For Red Hat OpenShift VPC clusters that have only the private cloud service endpoint enabled, you must be connected to the VPC private network through a VPN or IBM Cloud Direct Link connection to access the cluster.
Before you begin
- Install the required CLI tools.
- Set up one of the following connections to the VPC private network.
- Verify your cluster is healthy:
ibmcloud oc cluster get -c CLUSTER_NAME_OR_ID.
Accessing a private VPC cluster from the CLI
-
Connect to your VPC private network using your VPN or Direct Link connection.
-
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
Accessing through the Virtual Private Endpoint (VPE) gateway
VPC clusters also support access through a VPE gateway. See Accessing VPC clusters through the Virtual Private Endpoint gateway.