当前位置:网站首页>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集群
边栏推荐
- PSS:你距离NMS-free+提点只有两个卷积层 | 2021论文
- 面试半年,上个月成功拿到阿里P7offer,全靠我啃烂了这份2020最新面试题!
- Logstash excludes specific files or folders from collecting report log data
- Luogu_ P1002 [noip2002 popularization group] crossing the river_ dp
- SIGKDD22|图“预训练、提示、微调”范式下的图神经网络泛化框架
- Does polardb-x currently not support self-made database service Das?
- Source NAT address translation and server mapping web page configuration of firewall Foundation
- PolarDB-X现在版本的开源兼容什么?mysql8?
- About fast exponentiation
- LeetCode每日一练(主要元素)
猜你喜欢
MySQL中符号@的作用

ICML 2022 ぷ the latest fedformer of the Dharma Institute of Afghanistan ⻓ surpasses SOTA in the whole process of time series prediction

带你认识图数据库性能和场景测试利器LDBC SNB

About tensorflow using GPU acceleration

substrate 技术每周速览 20220411

PSS:你距離NMS-free+提點只有兩個卷積層 | 2021論文
![[pygame Games] ce jeu](/img/3c/e573106ec91441a554cba18d5b2253.png)
[pygame Games] ce jeu "eat Everything" est fantastique? Tu manges tout? (avec code source gratuit)

Redis系列2:数据持久化提高可用性

Distributed session solution

Numerical extension of 27es6
随机推荐
Cesium 使用MediaStreamRecorder 或者MediaRecorder录屏并下载视频,以及开启摄像头录像。【转】
[170] the PostgreSQL 10 field type is changed from string to integer, and the error column cannot be cast automatically to type integer is reported
Does polardb-x currently not support self-made database service Das?
SIGKDD22|图“预训练、提示、微调”范式下的图神经网络泛化框架
鴻蒙發力!HDD杭州站·線下沙龍邀您共建生態
Design of direct spread spectrum communication system based on FPGA (with main code)
MySQL中符号@的作用
可变参数模板 Variadic Templates
QT5 之信号与槽机制(演示控件自带的信号与槽函数关联)
Weekly snapshot of substrate technology 20220411
VS编译遇到的问题
Open source 23 things shardingsphere and database mesh have to say
等保三级密码复杂度是多少?多久更换一次?
QT audio playback upgrade (7)
The array of C language is a parameter to pass a pointer
Beginner level Luogu 2 [branch structure] problem list solution
Create a database and use
Mode setting of pulseaudio (21)
Slow bear market, bit Store provides stable stacking products to help you cross the bull and bear
专用发票和普通发票的区别