Kubernetes Dashboard-5 minutes a day to play Docker container technology (173)

Source: Internet
Author: User
Tags kubernetes dashboard

previous Chapters Kubernetes All operations we are using command line tools kubectl completed. To provide a richer user experience, Kubernetes also developed a WEB-based Dashboard that enables users to deploy containerized applications with Kubernetes Dashboard, monitor the status of applications, perform troubleshooting tasks, and manage Kubernetes Various resources.

in Kubernetes Dashboard can view the running state of the application in the cluster, and can create and modify various Kubernetes resources, such as Deployment, Job, Daemonset, etc. Users can scale Up/down Deployment, perform rolling Update, restart a Pod, or deploy a new app through a wizard. Dashboard can display the status and log information of various resources in the cluster.

It can be said that Kubernetes Dashboard provides kubectl most of the functions, you can choose according to the situation.

installation

Kubernetes no Dashboard is deployed by default and can be installed with the following command:

Kubectl create-f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/ Kubernetes-dashboard.yaml

Dashboard will be in kube-system Create your own Deployment and Service in namespace.

because the Service isClusterIPtype, for ease of use, we cankubectl --namespace=kube-system edit service kubernetes-dashboardmodified intoNodePorttype.

Save the changes and the Service has been assigned a port 31614 at this time .

Access Dashboard https://192.168.56.105:31614/ through the browser , the login interface is as follows:

Configure logon Permissions

Dashboard SupportKubeconfigand theTokentwo kinds of authentication methods, in order to simplify the configuration, we pass the configuration filedashboard-admin.yamlgive admin permissions to the Dashboard default user.

Execution kubectl apply make it effective.

Now click on the SKIP login page directly you'll be able to enter the Dashboard.

In the next section we will use Kubernetes Dashboard.

Books:

1. "5 minutes a day kubernetes"
Https://item.jd.com/26225745440.html

2.5 minutes of Docker container technology per day
Https://item.jd.com/16936307278.html

3.5 minutes of play with OpenStack per day
Https://item.jd.com/12086376.html

Kubernetes Dashboard-5 minutes a day to play Docker container technology (173)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.