Use Dashboard -5 minutes a day to play Docker container technology (174)-Alibaba Cloud Developer Community

In the previous section, we completed the installation of the Kubernetes Dashboard. This section will practice it.

Dashboard Interface Structure

the interface of Dashboard is very simple and divided into three large areas.

  1. Top operation area you can search for resources in the cluster, create resources, or exit.

  2. The navigation menu on the left allows you to view and manage various resources in the cluster. Menu items are classified into two types by resource level: cluster-level resources   namespace-level resources  by default defaultnamespace, you can switch:

  3. in the middle body area, click a type of resource in the navigation menu. All instances of the resource are displayed in the middle body area. For example, click Pods.

Typical scenarios

next, we will introduce several typical scenarios of Dashboard.

Deployment Deployment

click top operation area + CREATEbutton.

You can enter the name, image, and number of replicas of the application to be deployed. You can also upload the YAML configuration file. If you upload a configuration file, you can create any type of resources, not just Deployment.

Online operations

for each resource, you can click button to perform various operations.

For example, click View/edit YAMLyou can directly modify the resource configuration, which takes effect immediately after saving. kubectl editSame.

View resource details

click the name of a resource instance to view the details. kubectl describeSame.

View Pod logs

on the Pod and its parent resources (DaemonSet, ReplicaSet, etc.) page, click to view the Pod logs kubectl logssame.

The interface of the Kubernetes Dashboard is friendly and self-explanatory. It can be regarded as the GUI version kubectl, more functions are left for everyone to explore.

Summary

this topic describes how to install and use Kubernetes Dashboard. Dashboard can complete most of the daily management work and can be used as a useful supplement to the command line tool kubectl.

Books:

1. "play Kubernetes in 5 minutes every day" https://item.jd.com/26225745440.html

2. Play Docker container technology in 5 minutes a day https://item.jd.com/16936307278.html

3. Play OpenStack in 5 minutes every day https://item.jd.com/12086376.html

Selected, One-Stop Store for Enterprise Applications
Support various scenarios to meet companies' needs at different stages of development

Start Building Today with a Free Trial to 50+ Products

Learn and experience the power of Alibaba Cloud.

Sign Up Now