Create OKE Clusters Running on OCI
Before you begin
You’ll need to:
- Set up an Oracle Cloud Infrastructure (OCI) account with
- A compartment
- An API signing key
- Generate an SSH key pair to use for cluster authentication
Create a new OKE cluster on OCI
To provision new Oracle Container Engine for Kubernetes (OKE) managed clusters on OCI, complete the following steps:
-
Log in to the console. To find the console URL for your cluster, refer to Get console URLs and use the
rancherURL
value. -
Open the navigation menu and select Cluster Management.
-
From the left menu, select Cloud Credentials, and then click Create. Cloud credentials store the credentials for your cloud infrastructure provider.
-
Choose Oracle.
-
Provide a name for the cloud credential and then fill in the rest of the fields with information from your OCI account and its API signing key.
-
fingerprint: The fingerprint of the public API key. Find your key’s fingerprint.
-
passphrase: The passphrase used for the API key, if it was encrypted.
-
privateKeyContents: Copy the contents of the private key portion of the API key pair. Generate an API Signing Key.
-
region: Enter the identifier for the current region of your tenancy. Find your region identifier.
-
tenancyId: Enter the OCID of your tenancy. Find your tenancy OCID.
-
userId: Enter the OCID of the user. Find your user OCID.
-
-
From the left menu, select Clusters, and then click Create.
-
Select Oracle OKE and provide a name for the cluster. Do not select Oracle OKE (Legacy).
-
Expand Member Roles to add any users that you want grant access to this cluster and their permissions.
-
Expand Labels and Annotations to configure Kubernetes labels and annotations for the cluster.
-
Select the cloud credentials that you created. Ensure that the appropriate Region and Compartment are selected from their drop-down menus.
-
Click Next.
-
Set up your network. Choose Quick Create to create a new virtual cloud network (VCN) configured to the specifications required for an OKE cluster or Existing Infrastructure to use a VCN that’s already configured in your OCI account.
-
If you choose the Existing Infrastructure option, then select the compartment where your VCN is located from the VCN Compartment drop-down menu, then the VCN itself from the Virtual Cloud Network drop-down menu. Next, select subnets within the VCN for each of the Cloud Plane Subnet, Load Balancer Subnet, and Worker Node Subnet drop-down menus. See Configure a VCN in OCI for requirements.
-
The VCN compartment does not need to match the compartment specified in the cloud credential.
-
-
Click Next.
-
Configure the cluster control plane. Select an OKE Version and then a CNI Type.
-
Choose a Node Image from the drop-down menu.
-
Copy or upload an SSH public key to manage authentication of the cluster. Your SSH public key is installed on the cluster nodes, enabling SSH after the cluster is created.
-
Add node pools to your cluster. Clusters without node pools will schedule pods on control plane nodes.
-
(Optional) Install Verrazzano on the cluster. Choose a Verrazzano version from the drop-down menu. You can also expand Advanced to make changes to the Verrazzano Resource YAML. By default, Verrazzano is installed using the
managed-cluster
profile which enables a limited set of components on the cluster. -
Expand Advanced Settings to make additional modifications to the default settings of your new cluster.
- YAML Manifests: Supply additional YAML manifests that are automatically installed after cluster creation. The total size of all additional YAML manifests may not exceed 500 KB.
- Cluster Networking: Configure cluster IP ranges and proxy settings.
- Container Registry: Specify a private registry for your container.
-
Click Create. It can take up to 30 minutes to provision all of the resources for your cluster, particularly for multi-node clusters.
When your cluster finishes provisioning, you can access it from the main Cluster Management page.
For help troubleshooting cluster creation, see Cluster Creation Issues.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.