Create OCNE 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 OCNE cluster on OCI
To provision new Oracle Cloud Native Environment (OCNE) 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.
-
-
Click Create to save the new cloud credential.
-
From the left menu, select Clusters, and then click Create.
-
Select Oracle OCNE on OCI and provide a name for the cluster.
-
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 OCNE 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.
-
Choose a Node Image from the drop-down menu.
You can choose to override the default Node Image. Expand OCNE Image Configuration and provide a custom image OCID. If your custom image includes OCNE binaries, then you can select Skip OCNE Dependency Installation to avoid duplicates.
-
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.
-
Configure the cluster control plane. Select the OCNE Version first because it determines which Kubernetes versions are available, then choose a Kubernetes Version and a Control Plane Shape. You can leave the rest of the options at their default setting or modify them as needed.
Under Advanced, you can choose to edit image tags for ETCD, CoreDNS, and Calico, or whether to install OCI CCM/CSI and Calico.
-
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.