How to Select a Location When Creating a Free Kubernetes Cluster on IBM Cloud

1 min read

Using the command line interface, you can choose the location in which you create your free Kubernetes cluster.

IBM Cloud offers a free Kubernetes cluster with one worker node and limited capabilities for 30 days. When you use the IBM Cloud console to create it, you cannot select its location. Your cluster is automatically created in one of the following locations:

  • Dallas in North America
  • Frankfurt or London in Europe
Your cluster is automatically created in one of the following locations:  Dallas in North America Frankfurt or London in Europe

I'm going to run you through the steps to use the the command line interface (CLI) to choose your own location (although you still need to select from Dallas, Frankfurt, and London). 

Step 1. Log in with the CLI and select a target resource group

$ ibmcloud login --sso
$ ibmcloud target -g YOUR_RESOURCE_GROUP

Step 2. Select a region to use, then create a cluster

The following regions are available:

  • Frankfurt in ibmcloud ks init --host https://eu-de.containers.cloud.ibm.com
  • London in ibmcloud ks init --host https://eu-gb.containers.cloud.ibm.com
  • Dallas in ibmcloud ks init --host https://us-south.containers.cloud.ibm.com

In this example, I select the Frankfurt region:

$ ibmcloud ks init --host https://eu-de.containers.cloud.ibm.com
Using user provided API endpoint: https://eu-de.containers.cloud.ibm.com
OK

$ ibmcloud ks cluster create classic --name YOUR_CLUSTER_NAME
The 'machine-type' flag was not specified. So a free cluster will be created.
Creating cluster...
OK

Now you have a free cluster in Frankfurt. You can use it with other consumer services in the same region, such as Blockchain. 

Now you have a free cluster in Frankfurt. You can use it with other consumer services in the same region, such as Blockchain. 

Summary

With these simple steps, you can create a free Kubernetes cluster in Dallas, Frankfurt, or London by using the CLI. For more details on creating the free cluster, see the Kubernetes FAQ

Be the first to hear about news, product updates, and innovation from IBM Cloud