Sign up for a live Kubernetes or DevSecOps demo

Click here

Kubernetes

Learn how to get started with Kubernetes including how to monitor and manage your clusters, view your Kubernetes logs, and how to improve your Kubernetes security

Navigating through the Dashboard UI

Navigating through the Dashboard layout should be intuitive. There are main sections on the right-hand side for Cluster Management, Workloads, Service Discovery, Config, Storage and Settings.

Each section expands to subsections where we can select individual resources that we can manage. For example:

  • We can easily switch namespaces using the dropdown selection option:
  • We can see all the available nodes from Cluster-> Nodes


  • We can see the list of all pods, and filter by pod label from Workloads->Pods

  • We can see the list of all config maps, and filter by pod label from Config and Storage >Config Maps


  • We can perform additional actions for each item in the list by clicking on the vertical dotted icons on the right-hand side. For example, we have the option to see the logs or scale the deployment:



That concludes the basic navigation of the dashboard. Let’s see how we can create a new resource using the UI this time, and deploy it into the cluster.

Deploying Containerized Applications

We can create a new resource deployment using the plus (+) button on the upper right-hand corner of the screen:

We can then have various options to describe our deployment such as text, file or a generic form. Let’s choose the last option and follow the form steps to deploy a Redis server in our cluster.

Fill in the following fields as depicted in the screenshot below:

If you click on the show advanced options button you can fill in additional properties regarding the deployment:

Once you are ready, click on the Deploy button. You should be able to see the deployment information and its status:

Once the deployment is successful, we should be able to connect to the redis server from within the cluster. For example:

$ kubectl exec -it redisdemo-598d696fb6-mfmhz /bin/sh

/data # ps

PID USER TIME COMMAND

1 redis 0:00 redis-server

16 root 0:00 /bin/sh

21 root 0:00 ps

/data # redis-cli

127.0.0.1:6379> INFO

# Server

redis_version:3.2.7

redis_git_sha1:00000000

redis_git_dirty:0

redis_build_id:10f09fc625258756

redis_mode:standalone

os:Linux 4.14.152-127.182.amzn2.x86_64 x86_64

...

Once we are finished working with this example, we can destroy it using the trash icon:

Kubernetes Dashboards with Sumo Logic

The official Kubernetes Dashboard is a valuable tool when we want to quickly manage and monitor our Cluster. However, out-of-the-box it is very limited, and it quickly becomes a second or third choice. For those that want something more advanced and need enterprise-level support, you can leverage the new Sumo Logic Dashboards for Kubernetes.

Among the many features, they offer integration with the existing Sumo logic Dashboards, so we don’t have to switch tabs and places to monitor our cluster. We have numerous collection options and custom widgets. There are also additional sections, such as a dedicated security overview. This is more favourable than the stock dashboard, which has a set widget layout and looks more primitive.

The benefits of using a custom Dashboard for Kubernetes like Sumo Logic Dashboards, is the improved visibility and more streamlined experience. We have more options for customization coupled with the enterprise-level of support for new features that makes the product more aligned with the business needs.

Conclusion

In this article, we discussed ways to install and use the stock Kubernetes dashboard, and gave our recommendations for a more optimal solution using Sumo Logic Dashboards. Using Dashboards is a more visualized approach for deploying, managing, monitoring, and administering your Kubernetes environment. It takes a bit of time to get comfortable with the UI elements and functionality, but becomes easier to use in short order.