当前位置:网站首页>Kubernetes deployment dashboard (Web UI management interface)
Kubernetes deployment dashboard (Web UI management interface)
2022-06-29 17:09:00 【Full stack programmer webmaster】
build Dashboard(k8s Web UI)
Based on the built Kubernetes Cluster deployment Dashboard
download yaml file
wget https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.4/aio/deploy/recommended.yaml
There should be an error downloading this file from the domestic network
Download mirroring
Also downloaded during deployment , For faster deployment Running, So download ahead of time
docker pull kubernetesui/dashboard:v2.0.4
modify yaml file
By default, this file is not deployed through the node ip Access to the , For a more friendly visit , use NodePort How to deploy
# dashboard 2.0.4 edition
# 40 Line add ,spec below
type: NodePort
Modify the image Download Strategy
Because I downloaded the image just now , Here, it is modified to use directly if the image exists , If it doesn't exist, go back and download it
# 191 That's ok
imagePullPolicy: IfNotPresent
# take Always It is amended as follows IfNotPresent
Deploy Dashboard
# kubectl apply -f recommended.yaml
namespace/kubernetes-dashboard created
serviceaccount/kubernetes-dashboard created
service/kubernetes-dashboard created
secret/kubernetes-dashboard-certs created
secret/kubernetes-dashboard-csrf created
secret/kubernetes-dashboard-key-holder created
configmap/kubernetes-dashboard-settings created
role.rbac.authorization.k8s.io/kubernetes-dashboard created
clusterrole.rbac.authorization.k8s.io/kubernetes-dashboard created
rolebinding.rbac.authorization.k8s.io/kubernetes-dashboard created
clusterrolebinding.rbac.authorization.k8s.io/kubernetes-dashboard created
deployment.apps/kubernetes-dashboard created
service/dashboard-metrics-scraper created
deployment.apps/dashboard-metrics-scraper created
Check whether to run
[[email protected] ~]# kubectl get pods -n kubernetes-dashboard
NAME READY STATUS RESTARTS AGE
dashboard-metrics-scraper-6b4884c9d5-gqmn4 1/1 Running 0 2m39s
kubernetes-dashboard-8478c4964c-r2vt8 1/1 Running 0 2m39s
View the access port mapped to the host
host ip:192.168.1.10
mapping port:30321
[[email protected] ~]# kubectl get svc -n kubernetes-dashboard
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
dashboard-metrics-scraper ClusterIP 10.96.237.228 <none> 8000/TCP 3m8s
kubernetes-dashboard NodePort 10.106.24.161 <none> 443:30321/TCP 3m9s
Verify access Dashboard
Intra network server access https://NodeIP:port, That is to say https://192.168.1.10:30321
Here is the verification method token, Need to get token, To look down
Token Login by authentication
To all namespace to grant authorization
# establish serviceaccount
kubectl create serviceaccount dashboard-serviceaccount -n kubernetes-dashboard
# establish clusterrolebinding
kubectl create clusterrolebinding dashboard-cluster-admin --clusterrole=cluster-admin --serviceaccount=kubernetes-dashboard:dashboard-serviceaccount
obtain token
[[email protected] ~]# kubectl get secret -n kubernetes-dashboard | grep dashboard-serviceaccount-token
dashboard-serviceaccount-token-vd64k kubernetes.io/service-account-token 3 55s
[[email protected] ~]# kubectl describe secret dashboard-serviceaccount-token-vd64k -n kubernetes-dashboard
take token The value of the field is copied to the token part , To log in
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/101928.html Link to the original text :https://javaforall.cn
边栏推荐
- curl: (56) Recv failure: Connection reset by peer
- Interrupt怎么用
- Review of mathematical knowledge: curve integral of type I
- Redis bloom filter and cuckoo filter
- I, a tester from a large factory, went to a state-owned enterprise with a 50% pay cut. I regret it
- Solid state storage manufacturer Yilian joins dragon dragon community to build a new open source ecosystem
- 最高81.98%!超百所“双一流”高校本科深造率公布
- 关于XAMPP无法启动mysql数据库
- 基于C语言开发实现的一个用户级线程库
- Picture and text show you how to thoroughly understand the atomicity of MySQL transaction undolog
猜你喜欢
腾讯云发布CDW ClickHouse升级版,为海量数据实时分析场景提供极速体验
Fluent的msh格式网格学习
元代理模型可迁移对抗攻击
mysql数据库扫盲,你真的知道什么是数据库嘛
After eight years of testing and opening experience and interview with 28K company, hematemesis sorted out high-frequency interview questions and answers
A user level thread library based on C language
0基础自学STM32(野火)——使用寄存器点亮LED——GPIO功能框图讲解
知道创宇为能源行业资产管理助力,入选工信部2021物联网示范项目
LSB hidden items of stream carrier based on assembly implementation
【 OpenGL 】 Random Talk 1. The camera rotates around a point in the space by dragging the mouse
随机推荐
Inheritablethreadlocal resolves message loss during message transmission between parent and child threads in the thread pool
iNFTnews | Meta在元宇宙中的后续计划会是什么?
Take another picture of cloud redis' improvement path
Implement a ThreadLocal by yourself
Flutter technology and Practice (1)
Naacl 2022 | distillation of machinetranslation SOTA model
How to use openmesh to realize the conversion between 3D files of different formats
epoll分析
卷妹带你学数据库---5天冲刺Day4
@Component与@Configuration区别
Which parameter is the partition information adjusted? The MySQL source stream API is used, not the table API
Advanced webgl performance optimization
NAACL 2022 | 机器翻译SOTA模型的蒸馏
【R语言数据科学】:文本挖掘(以特朗普推文数据为例)
Fluent的msh格式网格学习
After eight years of testing and opening experience and interview with 28K company, hematemesis sorted out high-frequency interview questions and answers
Information | Zuckerberg was rated as the most careless CEO in the global IT industry; China Mobile R & D tethered UAV emergency communication high altitude base station
Redis布隆过滤器和布谷鸟过滤器
毕业季 | 华为专家亲授面试秘诀:如何拿到大厂高薪offer?
基于深度学习的Wiki中文语料词word2vec向量模型