Saltstack Automated Deployment kubernetes v1.9.3 version----Dashboard

Source: Internet
Author: User
Tags k8s saltstack

[Email protected] coredns]# pwd
/srv/addons/coredns

[Email protected] srv]# CD addons/
[[email protected] addons]# ls
Coredns Dashboard Nginx-deployment.yaml Nginx-service.yaml
[Email protected] addons]# CD coredns/
[[email protected] coredns]# ls
Coredns.yaml
[Email protected] coredns]# kubectl create-f.
ServiceAccount "Coredns" created
Clusterrole "System:coredns" created
Clusterrolebinding "System:coredns" created
Configmap "Coredns" created
Deployment "Coredns" created
Service "Coredns" created
[[email protected] coredns]# Kubectl get pod-n Kube-system
NAME Ready STATUS Restarts
COREDNS-6FF7588DC6-JJGTQ 0/1 containercreating 0 12s
Coredns-6ff7588dc6-tx8xd 0/1 containercreating 0 12s
KUBERNETES-DASHBOARD-545B66DB97-C9WCC 1/1 Running 0 8h
[Email protected] coredns]#
[[email protected] coredns]# Kubectl get service-n Kube-system
NAME TYPE cluster-ip external-ip PORT (S) Age
Coredns clusterip 10.1.0.2 <none> 53/udp,53/tcp 52s
Kubernetes-dashboard nodeport 10.1.20.150 <none> 443:20628/tcp 8h
[Email protected] coredns]#

[[email protected] coredns]# Kubectl get pod-n kube-system-o wide
NAME ready STATUS Restarts IP NODE
COREDNS-6FF7588DC6-JJGTQ 1/1 Running 0 33m 10.2.99.7 192.168.137.253
Coredns-6ff7588dc6-tx8xd 1/1 Running 0 33m 10.2.48.7 192.168.137.251
kubernetes-dashboard-545b66db97-62c9k 1/1 Running 0 14s 10.2.48.8 192.168.137.251
[Email protected] coredns]#

[Email protected] coredns]# pwd
/srv/addons/coredns
[Email protected] coredns]# CD.
[[email protected] addons]# ls
Coredns Dashboard Nginx-deployment.yaml Nginx-service.yaml
[Email protected] addons]# CD dashboard/
[[email protected] dashboard]# ls
Admin-user-sa-rbac.yaml Kubernetes-dashboard.yaml Ui-admin-rbac.yaml Ui-read-rbac.yaml
[Email protected] dashboard]# kubectl create-f.

Create a login token
[[email protected] ~]# kubectl-n Kube-system describe secret $ (kubectl-n Kube-system get Secret | grep admin-user | awk ' {print $} ')
Name:admin-user-token-2dwfx
Namespace:kube-system
Labels: <none>
Annotations:kubernetes.io/service-account.name=admin-user
Kubernetes.io/service-account.uid=fc2863fe-6552-11e8-ae8b-000c2926e6d3

Type:kubernetes.io/service-account-token

Data

ca.crt:1359 bytes
Namespace:11 bytes
Token: Eyjhbgcioijsuzi1niisinr5cci6ikpxvcj9.eyjpc3mioijrdwjlcm5ldgvzl3nlcnzpy2vhy2nvdw50iiwia3vizxjuzxrlcy5pby9zzxj2awnlywnjb3vu Dc9uyw1lc3bhy2uioijrdwjllxn5c3rlbsisimt1ymvybmv0zxmuaw8vc2vydmljzwfjy291bnqvc2vjcmv0lm5hbwuioijhzg1pbi11c2vylxrva2vultjkd 2z4iiwia3vizxjuzxrlcy5pby9zzxj2awnlywnjb3vudc9zzxj2awnllwfjy291bnqubmftzsi6imfkbwlulxvzzxiilcjrdwjlcm5ldgvzlmlvl3nlcnzpy2 Vhy2nvdw50l3nlcnzpy2utywnjb3vudc51awqioijmyzi4njnmzs02ntuyltexztgtywu4yi0wmdbjmjkynmu2zdmilcjzdwiioijzexn0zw06c2vydmljzwf Jy291bnq6a3vizs1zexn0zw06ywrtaw4tdxnlcij9.rrc4zpawlk9tejxkd6jsgw-wrzjipsq0vfntdvkb25zlqkrqil8lnmbncfhamm9ejvsjnjd1h5hdgrd Lklwvgskvxrngdf_i-pvwfxnlxijojgfune03l_krsv_99zetwxn_hpgy1cdneksf9g28tzg2rzbxptxmvuqlpqejvjfyd1gyv2cnqb_ R-0rg5jaixlbubunwmuqhdg_nmdzmpv0mwnshlldnhuyn_ Yk4nxbokfyeq60hteicow7j7llla-r02ahckn0iuesowts8mdzisa7hqqkhp8bb9uvy0flrr43593nt7mx4ahmmbgesxghjft1re81g-wwi65t2ww
[[email protected] ~]# cd/srv

[[email protected] coredns]# Kubectl get pod-n kube-system-o wide
NAME ready STATUS Restarts IP NODE
COREDNS-6FF7588DC6-JJGTQ 1/1 Running 0 33m 10.2.99.7 192.168.137.253
Coredns-6ff7588dc6-tx8xd 1/1 Running 0 33m 10.2.48.7 192.168.137.251
kubernetes-dashboard-545b66db97-62c9k 1/1 Running 0 14s 10.2.48.8 192.168.137.251
[Email protected] coredns]#
[[email protected] coredns]# Kubectl get service-n kube-system-o wide
NAME TYPE cluster-ip external-ip PORT (S) Age SELECTOR
Coredns clusterip 10.1.0.2 <none> 53/udp,53/tcp 33m k8s-app=coredns
Kubernetes-dashboard nodeport 10.1.20.150 <none> 443:20628/tcp 9h k8s-app=kubernetes-dashboard

Firefox browser opens
https://192.168.137.251:20628

1

2

3

4

openstack2015

Saltstack Automated Deployment kubernetes v1.9.3 version----Dashboard

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.