Using Kubernetes Cluster For Your Private Cloud Orchestration – Part 1

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)

Kubernetes Cluster installation, configuration on Ubuntu 17.04

Below I am going to demonstrate options available to manage a Kubernetes Cluster in your own private cloud.

First of, What is Kubernetes?
Kubernetes is an open-source system for automating deployment, scaling, and management of containerized applications. It groups containers that make up an application into logical units for easy management and discovery.

Note: It is necessary to have prior experience using Docker before working with Kubernetes.
It should also be noted that the Kubernetes system is available on multiple Cloud providers.

To quickly test drive the Kubernetes system, you have multiple options.

  1. Use a Cloud provider, like AWS, GCP, etc… to bring up you cluster
  2. Use minikube to quickly test the Kubernetes capability
  3. Use a full blown installation (in a small scale)

Below I will start by using option 2, I will then move on to option 3 with a full blown setup (of-curse on a small scale) .

Installing minikube

Getting minikube to work on Ubuntu is a straight forward, simple process.

Lets start by downloading minikube.

While at it lets also download the kubectl utility.

Lets make sure minikube works

Running minikube

Now, lets start the minikube cluster.
Tip: minikube is meant to be run on a single physical node, therefore, bringing up the cluster is extremely simple.

Note: You can omit the proxy options, if you are not working behind a proxy.

The cluster should now be up and running, lets verify by running.

Tip: For a full cluster dump run kubectl cluster-info dump

Note: If you are behind a proxy, before continuing the below, Make sure to add your cluster ip i.e. to your no_proxy list.
For example:

Now, Lets bring up the hello application by running the below.

Next, lets expose the application, you do so by running the below.

You can test the application by running the below.

To find out the the minikube dashboard url/ip, just run the below.

Tip: Normally, you will only be able to connect to the dashboard from i.e. the local host.

To expose the port for external access, you have two options
Option 1
Run kubectl proxy, make sure to add the below option.

Now in browser, the below should work.
Note: The above commend opens widely the full cluster management, which is extremely un-secure.

Option 2

Option 3
Use VNC server to connect and manage the cluster with the dashboard
On the Kubernetes master, run

Then just connect with your favorite vnc viewer on port 5900
Once done, just run

You now have a small Kubernetes cluster to test with.

Kubernetes minikube – Helpful tips

Clean up – Destroy the minikube with all pods and services

To remove all services and pods, just run the below

In this post I went over the basics, getting your fingers wet by using minikube to manage your Kubernetes cluster.

In the next post, I am going to dive in deeper, installing and configuring your own Kubernetes cluster by using kubelet and kubeadm.

You might also like:
Master Index – Related Posts To Docker, Kubernetes And Micro-Services.

Whats tools are you using to manage your Kubernetes Cluster? please let me know in the comments below.

Leave a Reply

Notify of