Difficulty: Beginner
Estimated Time: 10 minutes

Basic Kubernetes Observability

This scenario explores the basic techniques for observing the state of Kubernetes.

The online terminal is a pre-configured Linux environment that can be used as a regular console (you can type commands). Clicking on the blocks of code will execute that command in the terminal.

In the following steps you will learn:

  • How to access the metrics and information in cAdvisor,
  • How to inspect Kubernetes resources,
  • How to leverage Heapster.

Basic Kubernetes Observability

Step 1 of 5

Cluster up and running

In this Linux server, Minikube and the Kubernetes CLI tool is already installed for you. Check that they are properly installed.

minikube version && kubectl version

OK, we can see that Minikube is in place.

Start the cluster.

minikube start --extra-config=kubelet.CAdvisorPort=4194

Great! You now have a running Kubernetes cluster in your online terminal. Minikube started a virtual machine for you, and a Kubernetes cluster is now running in that VM.

minikube status && kubectl cluster-info

These two commands are the first commands that touch the topic of observability. This simply asks, do I have a running cluster yes or no.

Notice when we started the Kubernetes cluster we passed to Minikube a port number for cAdvisor. More on cAdvisor in the next step.

Kubernetes Dashboard