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.
- To create a Kubernetes cluster using Container Engine Kubernetes:
- Sign in to the console, on the Home page click Containers, then select Clusters.
- Select the OKE compartment from the list on the left.
- 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.