Part 4 – Creating a Kubernetes Cluster on OKE

On this post, you will see how to specify details for the cluster (for example, the Kubernetes version to install on master nodes). Having defined the cluster, you typically specify details for different node pools in the cluster (for example, the node shape, or resource profile, that determines the number of CPUs and amount of memory assigned to each worker node). Note that although you will usually define node pools immediately when defining a cluster, you don’t have to. You can create a cluster with no node pools, and add node pools later.

  1. To create a Kubernetes cluster using Container Engine Kubernetes:
    1. Sign in to the console, on the Home page click Containers, then select Clusters.
    2. Select the OKE compartment from the list on the left.
    3. Click Create Cluster and enter the following:
      • Name: Enter a unique name for your cluster such as “OKE-Demo”
      • Version: Select the latest version (v1.9.7)
      • VCN: Select the default VCN
      • Kubernetes Service LB Subnets: Select the two load balancer subnets (lb-1 and lb-2)
      • Kubernetes Service CIDR Block: 10.96.0.0/16
      • Pods CIDR Block: 10.244.0.0/16
      • Additional Add Ons: Leave the defaults

To add a node pool, do the following:

Click Add a Node Pool:

  • Name: Enter a unique name for your node pool such as “OKE-Demo-Pool”
  • Version: v1.97
  • Image: Oracle-Linux-7.4
  • Shape: VM.Standard1.1
  • Subnets: Select the three workers subnets (worker-1, worker-2, and worker-3)
  • Quantity Per Subnet: 1
  • Public SSH Key: Copy the content of your SSH Public Key

Once your Node Pool is ready, it should look like the following:

Here you go, you have successfully created an OKE Cluster and it’s resources (Node Pool). In the next post, I will be talking about how to access the cluster and get started with kubectl.

About Prasenjit Sarkar

Prasenjit Sarkar is a Product Manager at Oracle for their Public Cloud with primary focus on Cloud Strategy, Cloud Native Applications and API Platform. His primary focus is driving Oracle’s Cloud Computing business with commercial and public sector customers; helping to shape and deliver on a strategy to build broad use of Oracle’s Infrastructure as a Service (IaaS) offerings such as Compute, Storage, Network & Database as a Service. He is also responsible for developing public/private cloud integration strategies, customer’s Cloud Computing architecture vision, future state architectures, and implementable architecture roadmaps in the context of the public, private, and hybrid cloud computing solutions Oracle can offer.

Leave a Reply