Welcome!

Module 2: Kubernetes Web UI/App Demo

Difficulty:Beginner

Estimated Time:10 minutes

Welcome to the BoxBoat "Kubernetes Training" series. This is Module 2, Intro to Kubernetes. This lab will let you quickly deploy the Kubernetes Dashboard and an app that uses multiple microservices call Vote.

If you have not already, please check out Module 1 of the series here:

Steps

Module 2: Kubernetes Web UI/App Demo

Step 1

This lab will demonstrate how quickly Kubernetes can deploy containers and complex working applications and expose them for external access.

First, lets make sure our cluster is ready and we can run basic "kubectl" commands.

Run the following command to make sure that Kubernetes is ready. launch.sh

Now lets check the status of the cluster components

This shows the nodes in the cluster. kubectl get nodes

This will show the kubernetes system pods running. watch -n .5 kubectl get pods -n kube-system Once all pods show as "running" you can proceed to the next step. Hit "CTRL+C" to exit the watch.

This will show the current pods, deployments, deployments and namespaces. kubectl get pods,deploy,svc,ns -n kube-system

In the next step, we will deply the Kubernetes UI (Dashboard).

Step 2

Lets deploy the Kubernetes UI (Dashboard) and take a quick look around.

To deploy the dashboard, run the following command. kubectl apply -f https://gist.githubusercontent.com/mjboxboat/9601f7aff786f52bce3f4af7e21b8339/raw/572f1c056c9385fb5ebc8a55a64717331028b284/kube-dash.yml

Now we can check to see if the Dashboard pod is running. kubectl get pods -n kube-system

And we can also check to see what port the Dashboard is exposed on. kubectl get svc -n kube-system

That concludes the Module 2 - Intro To Kubernetes lab. Please reach out to use at BoxBoat if you have any questions of if you are interested in training for your organization. https://boxboat.com/company/contact-us/

Help

Katacoda offerings an Interactive Learning Environment for Developers. This course uses a command line and a pre-configured sandboxed environment for you to use. Below are useful commands when working with the environment.

cd <directory>

Change directory

ls

List directory

echo 'contents' > <file>

Write contents to a file

cat <file>

Output contents of file

Vim

In the case of certain exercises you will be required to edit files or text. The best approach is with Vim. Vim has two different modes, one for entering commands (Command Mode) and the other for entering text (Insert Mode). You need to switch between these two modes based on what you want to do. The basic commands are: