Kubernetes1.91 (k8s) Installation deployment Process (eight)--Kubernetes-dashboard installation

Source: Internet
Author: User
Tags k8s

Kubernets-dashboard as the name implies is the operation panel installation, that is, the visual management machine, agreed that we use the image with the configuration file deployment.

1. Download Image:

Docker pull Registry.docker-cn.com/kubernetesdashboarddev/kubernetes-dashboard-amd64:head

2. New deployment Configuration file

2 files required.

Document One Dashboard.yaml:

apiVersion:v1kind:ServiceAccountmetadata:name:kubernetes-Dashboard Namespace:kube-system---ApiVersion:rbac.authorization.k8s.io/v1beta1kind:ClusterRoleBindingmetadata:name:kubernetes-Dashboard labels:k8s-app:kubernetes-DashboardroleRef:apiGroup:rbac.authorization.k8s.io kind:clusterrole Name:cluster-adminsubjects:-Kind:serviceaccount name:kubernetes-Dashboard Namespace:kube-system---apiversion:extensions/v1beta1kind:Deploymentmetadata:name:kubernetes-Dashboard Namespace:kube-system labels:k8s-app:kubernetes-Dashboard Kubernetes.io/cluster-service:"true"Addonmanager.kubernetes.io/mode:Reconcilespec:selector:matchLabels:k8s-app:kubernetes-Dashboard template:metadata:labels:k8s-app:kubernetes-Dashboard Annotations:scheduler.alpha.kubernetes.io/critical-pod:"'spec:serviceAccountName:kubernetes-Dashboard Containers:-name:kubernetes-Dashboard Image:registry.docker-cn.com/kubernetesdashboarddev/kubernetes-dashboard-amd64:headresources:limits:cpu:100m memory:300mi requests:cpu:1 00m memory:100mi Ports:-Containerport:9090LivenessProbe:httpGet:path:/Port:9090Initialdelayseconds: -timeoutseconds: -tolerations:-Key:"criticaladdonsonly"Operator:"Exists"

Document Two:

Dashboard-svc.yaml file

apiVersion:v1kind:Servicemetadata:  name:kubernetes-dashboard  namespace:kube-  System  Labels:    k8s-app:kubernetes-dashboard    kubernetes.io"true "     addonmanager.kubernetes.io/mode:reconcilespec:  selector:    k8s-app: kubernetes-Dashboard  type:nodeport  ports:  9090    9090 32017      

3. Execute 2 Deployment files respectively

KUBECTL Create-f Dashboard-svc.yaml

4. Enquiry Service

As with the previous session, replace the shut-down machine.

5, how to access?

Careful people should change the law our Yaml file has a ports definition, we define a nodeport way, the port is 32017, so

32017 on the host, we can use the host ip+32017, that is, 10.10.90.105:32017 access,

Now you can use the panel to manage the cluster, but the panel does not show a certain load of node nodes, such as CPU, memory, etc., we can follow another Heapster plugin in the next section to display, the next tutorial goodbye!

Kubernetes1.91 (k8s) Installation deployment Process (eight)--Kubernetes-dashboard installation

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.