当前位置:网站首页>Etcd visualization tool: kstone deployment (I), rapid deployment based on Helm
Etcd visualization tool: kstone deployment (I), rapid deployment based on Helm
2022-06-27 16:16:00 【51CTO】
author | Li Dabai
This article has participated in 「 Open source star picking program 」, Welcome to join us .
Activity Links : https://github.com/weopenprojects/WeOpen-Star
Deployment environment
- There is one kubernetes colony ;
- Installed with Helm;
- install Git( Optional );
- operating system : CentOS 7.5 (VMWare Virtual host );
install Helm
Because I use it. Helm Deploy Kstone, All have to be in my kubernetes Clustered master The nodes shall be installed first Helm Package management tools .
$ 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 Download the installation package in advance , Because the download process will be slow .
install git
download Kstone Chart package
establish Kstone Namespace
establish Admin TOKEN
by dashboard-api establish Admin TOKEN To visit Kubernetes
obtain Admin TOKEN
from Kubeadm Cluster access Admin TOKEN.
modify values.yaml To configure
modify charts/dashboard-api/values.yaml In file kube.token Parameter value in , Just get the Token Copy to file .$token It is the access credential of the cluster to be deployed TOKEN, You need to be able to access all the resources in the cluster .
[[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 Deploy Kstone
Helm Install the test environment Kstone,values.test.yaml by Test environment ,values.yaml For the production environment , The difference is that the test environment takes up less resources , If your own kubernetes The cluster resources are sufficient , Production can be deployed .
see Pod resources
[[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.
You can see Pod The services have been deployed successfully , If deployment fails , Self checking .
see Service resources
To configure Ingress resources ( Optional )
In the installation Kstone When , By default Ingress resources , But it doesn't work , It needs to be deleted and recreated . Premise is kubernetes The cluster is deployed with Ingress-conroller controller .
1) View deployed Ingress
2) Delete the old Ingress
3) Recreate 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.
visit Kstone dashboard
Enter the domain name or node address in the browser to access Kstone Of UI Management interface . because Kstone-dashboard Service is based on Nodeport Exposed in a way , You can also use nodes IP+ Access through the service port .
【 Next 】: Use Kstone Efficient management etcd colony
边栏推荐
- 带你认识图数据库性能和场景测试利器LDBC SNB
- Taishan Office Technology Lecture: the first difficulty is vertical positioning
- 3.3 one of the fixed number of cycles
- Leetcode daily practice (Yanghui triangle)
- What are the password requirements for waiting insurance 2.0? What are the legal bases?
- 米哈游起诉五矿信托,后者曾被曝产品暴雷
- What is RPC
- 16 -- remove invalid parentheses
- 华为云DevCloud重磅发布四大新能力,创下国内两项第一
- 利用Redis实现订单30分钟自动取消
猜你喜欢
Bit.Store:熊市漫漫,稳定Staking产品或成主旋律
What is RPC
SQL injection principle
守护雪山之王:这些AI研究者找到了技术的新「用武之地」
Yyds dry inventory solution sword finger offer: a path with a certain value in the binary tree (3)
LeetCode每日一练(无重复字符的最长子串)
锚文本大量丢失的问题
Numerical extension of 27es6
Practice of constructing ten billion relationship knowledge map based on Nebula graph
熊市慢慢,Bit.Store提供稳定Staking产品助你穿越牛熊
随机推荐
localDateTime类型的时间(2019-11-19T15:16:17) 用oracle的时间范围查询
What are the password requirements for waiting insurance 2.0? What are the legal bases?
华为云首次解读云原生2.0十大典型架构,加速构建现代化应用
In the Alibaba cloud experiment, if the k8s forwards to port 3306 and the MySQL client is turned on, it will terminate abnormally. What is the reason?
Nemo of pulseaudio (22)
Leetcode daily practice (main elements)
Problems encountered in vs compilation
Principle Comparison and analysis of mechanical hard disk and SSD solid state disk
郎酒两大王牌产品成都联动共振,持续带动光瓶酒消费浪潮
Hung - Mung! HDD Hangzhou station · salon hors ligne vous invite à construire l'écologie
ICML 2022 ぷ the latest fedformer of the Dharma Institute of Afghanistan ⻓ surpasses SOTA in the whole process of time series prediction
一场分销裂变活动,不止是发发朋友圈这么简单!
数组表示若干个区间的集合,请你合并所有重叠的区间,并返回 一个不重叠的区间数组,该数组需恰好覆盖输入中的所有区间 。【LeetCodeHot100】
【Pygame小遊戲】這款“吃掉一切”遊戲簡直奇葩了?通通都吃掉嘛?(附源碼免費領)
请问阿里云实验中 k8s 对于3306端口转发,同时开启mysql客户端就会异常终止,是什么原因呢?
如果想用dms来处理数据库权限问题,想问下账号只能用阿里云的ram账号吗(阿里云的rds)
PolarDB-X开源版有没有支持 mysql5.7 的版本?
Does polardb-x open source support mysql5.7?
E modulenotfounderror: no module named 'psychopg2' (resolved)
正则匹配以什么开头、以什么结尾,以非什么开头,以非什么结尾