Anthos Series Part 1 : Bring up an application in Kubernetes on IBM, Google, Microsoft

Image for post
Image for post
Sample Kubernetes Dashboard

This blog is part of a series to get you some idea about Google Anthos. Google Anthos has many features like Multi-cluster management, Ingress, Service Mesh, Binary authorization, Marketplace…etc . In this Blog series, I will talk about setting up the multi-cluster management (Anthos Connect). Connect allows you to connect any of your Kubernetes clusters to Google Cloud Read more about it here : https://cloud.google.com/anthos/multicluster-management/connect/overview

NOTE : This blog doesn’t have any specifics about Google Anthos. Use this blog as a pre-requisite and wait for my next blog for Anthos configuration.

In this blog I will explain about setting up Managed Kubernetes cluster in a few major service providers such as IBM, Google, and Microsoft.

If you want to setup a private Kubernetes cluster read my previous blog https://medium.com/@srpillai/single-node-kubernetes-on-centos-c8c3507e3e65

Make sure you have a workstation (Preferably a Linux distribution) for running the commands. I use an Ubuntu 18.04 machine to explain the steps below.

Setting up a Kubernetes cluster in IBM

You need to have an IBM Cloud Account with pay-as-you-go enabled to have a free cluster created. Once you setup your IBM Cloud Account follow the steps in this link to install IBM Cloud CLI : https://cloud.ibm.com/docs/cli

Once you have IBM Cloud CLI setup and authenticated to IBM cloud run the following commands to bring up the Kubernetes cluster,

This will take approximately 15–20 mins. Once it is done successfully, you can run your application,

Here is a short video of these steps in action,

NOTE: In the free account, you wont be able to expose the application to public as the Loadbalancer service is not free in IBM cloud.

Setting up a Kubernetes cluster in Google

You need to have a Google Cloud Account enabled to have a free cluster created. Once you setup your Google Cloud Account, follow the steps in this link to install Google Cloud CLI : https://cloud.google.com/sdk/docs/quickstart-debian-ubuntu

Once you have Google Cloud CLI setup and authenticated to Google cloud, run the following commands to bring up the Kubernetes cluster,

This will take approximately 3–6 mins. Once it is done successfully, you can run your application,

Here is a short video of these steps in action,

Setting up a Kubernetes cluster in Microsoft Azure

You need to have an Azure Cloud Account enabled to have a free cluster created. Once you setup your Azure Cloud Account, follow the steps in this link to install Azure Cloud CLI : https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest

Once you have Azure Cloud CLI setup and authenticated to Azure cloud, run the following commands to bring up the Kubernetes cluster,

This will take approximately 5–10 mins. Once it is done successfully, you can run your application,

Here is a short video of these steps in action,

Hope this is useful for you to bring up your Kubernetes on various clouds. I have not described the steps for AWS, because AWS Kubernetes service doesn’t fit in the free tier.

Wait for my next blog for managing all these clusters under one Google Anthos umbrella.

Written by

Cloud Solution Architect

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store