当前位置:网站首页>Etcd可视化工具:Kstone部署(一),基于Helm快速部署
Etcd可视化工具:Kstone部署(一),基于Helm快速部署
2022-06-27 15:35:00 【51CTO】

作者 | 李大白
本文已参与「开源摘星计划」,欢迎正在阅读的你加入。
部署环境
- 有一个kubernetes集群;
- 安装有Helm;
- 安装Git(可选);
- 操作系统: CentOS 7.5 (VMWare 虚拟主机);
安装Helm
因为我用Helm部署Kstone,所有得在我的kubernetes集群的master节点先安装好Helm包管理工具。
$ wget https://get.helm.sh/helm-v3.7.2-linux-amd64.tar.gz
$ tar
-zxvf helm-v3.7.2-linux-amd64.tar.gz
$ mv linux-amd64/helm /usr/local/bin/helm
$ helm version
version.BuildInfo{Version:
"v3.7.2", GitCommit:
"663a896f4a815053445eec4153677ddc24a0a361",
GitTreeState:
"clean", GoVersion:
"go1.16.10"}
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
helm安装包提前下载好,因为下载过程会比较慢。
安装git
下载Kstone Chart包
创建Kstone命名空间
创建 Admin TOKEN
为 dashboard-api 创建 Admin TOKEN 以访问 Kubernetes
获取 Admin TOKEN
从 Kubeadm 集群获取 Admin TOKEN。
修改values.yaml配置
修改charts/dashboard-api/values.yaml文件中kube.token中的参数值,将刚才获取到的Token复制到文件中。$token 是待部署集群的访问凭证 TOKEN,需要能够访问集群中的所有资源。
[[email protected] charts]
# vim charts/dashboard-api/values.yaml
kube:
# need to fill
token:
$token
target: kubernetes.default.svc.cluster.local:443
- 1.
- 2.
- 3.
- 4.
- 5.

Helm部署Kstone
Helm 安装测试环境的Kstone,values.test.yaml为测试环境,values.yaml为生产环境,区别就是测试环境所占用的资源比较少,如果自己的kubernetes集群资源足够,可以部署生产的。

查看Pod资源
[[email protected] charts]
# kubectl -n kstone get pods
NAME READY STATUS RESTARTS AGE
kstone-backup-operator-7664c59c84-n8dmk
1/1 Running
0 23m
kstone-dashboard-5c9587b569-5s6g4
1/1 Running
0 23m
kstone-dashboard-api-546cbf8578-glhdq
1/1 Running
0 23m
kstone-etcd-controller-76d988d96c-g4pxz
1/1 Running
0 23m
kstone-etcd-operator-cb8c9f8b5-btxzg
1/1 Running
0 23m
kstone-grafana-64f86f5b59-dbwpf
2/2 Running
0 23m
kstone-inspection-controller-6c548dd76d-hvkgf
1/1 Running
0 23m
kstone-prometheus-operator-58df5b47cc-dsbvt
1/1 Running
0 23m
prometheus-kstone-prometheus-prometheus-0
2/2 Running
0 19m
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.

可以看到Pod服务都部署成功了,如果部署失败,可自行排查。
查看Service资源

配置Ingress资源(可选)
在安装Kstone的时候,默认创建了Ingress资源,但无法正常使用,需要删掉后重新创建。前提是kubernetes集群中部署有Ingress-conroller控制器。
1)查看部署的Ingress
2)删除旧的Ingress
3)重新创建Ingress
$ kubectl apply
-f kstone-ingress.yaml
ingress.networking.k8s.io/kstone-ingress created
$ cat kstone-ingress.yaml
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: kstone-ingress
namespace: kstone
annotations:
kubernetes.io/ingress.class: nginx
spec:
rules:
- http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: kstone-dashboard
port:
number:
80
- path: /apis
pathType: Prefix
backend:
service:
name: kstone-dashboard-api
port:
number:
80
- path: /grafana
pathType: Prefix
backend:
service:
name: kstone-grafana
port:
number:
80
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
- 13.
- 14.
- 15.
- 16.
- 17.
- 18.
- 19.
- 20.
- 21.
- 22.
- 23.
- 24.
- 25.
- 26.
- 27.
- 28.
- 29.
- 30.
- 31.
- 32.
- 33.
- 34.
- 35.
- 36.

访问Kstone dashboard
在浏览器输入域名或节点地址访问Kstone的UI管理界面。因为Kstone-dashboard服务是以Nodeport的方式暴露的,也可以通过节点IP+ 服务端口的方式进行访问。

【下一篇】: 使用Kstone高效管理etcd集群
边栏推荐
- Design principles and ideas: design principles
- Keep valid digits; Keep n digits after the decimal point;
- Scrapy framework (I): basic use
- NFT双币质押流动性挖矿dapp合约定制
- The array of C language is a parameter to pass a pointer
- Expert: those who let you go to a good school with a low score are all Scams
- What is the open source compatibility of the current version of polardb-x? mysql8?
- Design of electronic calculator system based on FPGA (with code)
- Design of digital video signal processor based on FPGA (with main code)
- 数据中心表格报表实现定制统计加班请假汇总记录分享
猜你喜欢

SIGKDD22|图“预训练、提示、微调”范式下的图神经网络泛化框架

28 object method extension

The interview lasted for half a year. Last month, I successfully got Alibaba p7offer. It was all because I chewed the latest interview questions in 2020!

米哈游起诉五矿信托,后者曾被曝产品暴雷

Hongmeng makes efforts! HDD Hangzhou station · offline salon invites you to build ecology

Bit. Store: long bear market, stable stacking products may become the main theme
![Luogu_ P1002 [noip2002 popularization group] crossing the river_ dp](/img/80/4edf21e0ac316fe3dd727159621acb.png)
Luogu_ P1002 [noip2002 popularization group] crossing the river_ dp

洛谷入门1【顺序结构】题单题解

Keep valid digits; Keep n digits after the decimal point;

熊市慢慢,Bit.Store提供稳定Staking产品助你穿越牛熊
随机推荐
The latest development course of grain college in 2022: 8 - foreground login function
List转Table
鸿蒙发力!HDD杭州站·线下沙龙邀您共建生态
泰山OFFICE技术讲座:第一难点是竖向定位
Domain name binding dynamic IP best practices
Centos8 PostgreSQL initialization error: initdb: error: invalid locale settings; check LANG and LC_* environment
QT5.5.1桌面版安装配置过程中的疑难杂症处理(配置ARM编译套件)
Weekly snapshot of substrate technology 20220411
华为云首次解读云原生2.0十大典型架构,加速构建现代化应用
Difference between special invoice and ordinary invoice
Distributed session solution
专用发票和普通发票的区别
Design of UART controller based on FPGA (with code)
About tensorflow using GPU acceleration
Beginner level Luogu 2 [branch structure] problem list solution
About fast exponentiation
Design of CAN bus controller based on FPGA (with main codes)
Principle Comparison and analysis of mechanical hard disk and SSD solid state disk
Design of vga/lcd display controller based on FPGA (with code)
Cesium uses mediastreamrecorder or mediarecorder to record screen and download video, as well as turn on camera recording. [transfer]