VPC: Why is no VPC available when I create a cluster in the console?
Infrastructure provider: VPC
You try to create a VPC cluster by using the Red Hat OpenShift on IBM Cloud console.
You have an existing VPC in your account, but when you try to select an existing Virtual Private Cloud to create the cluster in, you see the following error message:
No VPC is available. Create a VPC.
During cluster creation, the Red Hat OpenShift on IBM Cloud console uses the API key that is set for the default
resource group to list the VPCs that are available in your IBM Cloud account.
If no API key is set for the default
resource group, no VPCs are listed in the Red Hat OpenShift on IBM Cloud console, even if your VPC exists in a different resource group and an API key is set for that resource group.
To set an API key for the default
resource group, use the Red Hat OpenShift on IBM Cloud CLI.
- Log in to the command line as the account owner. If you want a different user than the account owner to set the API key, first ensure that the API key owner has the correct permissions.
ibmcloud login [--sso]
- Target the
default
resource group.ibmcloud target -g default
- Set the API key for the region and resource group.
ibmcloud oc api-key reset --region <region>
- In the Red Hat OpenShift on IBM Cloud console, click Refresh VPCs. Your available VPCs are now listed in a drop-down menu.