当前位置:网站首页>Deploy metersphere
Deploy metersphere
2022-07-23 10:49:00 【Zhangzhexi】
kubernetes Deployment in China
Helm Charts Mode deployment MeterSphere
Helm Charts Online deployment
bash
kubectl create ns ms
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo add metersphere https://metersphere.github.io/helm-chart/
from chart Update locally available in the warehouse chart Information about
helm repo update
helm install metersphere metersphere/metersphere -n ms
Helm Charts Offline deployment
1. Import mirror
download MeterSphere The latest version of the offline installation package and extract , Put the installation package image The image in the directory tar Packages uploaded to kubernetes Or manually load To kubernetes On each host node .
MeterSphere Offline installation package download link : https://community.fit2cloud.com/#/products/metersphere/downloads
2. Download offline Chart package
helm-chart Installation package download link : https://github.com/metersphere/helm-chart/releases
Such as :https://github.com/metersphere/helm-chart/releases/download/metersphere-1.1.0/metersphere-1.1.0.tgz
3. install
helm install metersphere metersphere-1.0.10.tgz -n ms
Helm Charts Online upgrade
helm repo update # from chart Update locally available in the warehouse chart Information about
helm upgrade metersphere metersphere/metersphere -n ms
After the official documents are installed and deployed , No deployment pv, Lead to pvc Unable to bind to pv, So we need to deploy it separately pv, But it's bound pvc It's quite a lot , So my deployment is storageclass, You can have one pv One pv Deploy .
Deploy storageclass
1. Deploy nfs
install nfs service :yum -y install nfs-utils ( Each node in the cluster should also be installed, otherwise it is not supported )
start-up nfs And set it to start automatically :systemctl start nfs && systemctl enable nfs
Create a shared mount directory : mkdir -pv /data/metersphere
edit /etc/exports file
/data/metersphere *(rw,fsid=0,sync,no_root_squash)
2. download storageclass Needed Yaml file
for file in class.yaml deployment.yaml rbac.yaml test-claim.yaml ; do wget https://raw.githubusercontent.com/kubernetes-incubator/external-storage/master/nfs-client/deploy/$file ; done
3. Modify the resource list
#vim deployment.yaml
#vim deployment.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: nfs-client-provisioner
---
kind: Deployment
apiVersion: extensions/v1beta1
metadata:
name: nfs-client-provisioner
spec:
replicas: 1
strategy:
type: Recreate
template:
metadata:
labels:
app: nfs-client-provisioner
spec:
serviceAccountName: nfs-client-provisioner
containers:
- name: nfs-client-provisioner
image: quay.io/external_storage/nfs-client-provisioner:v2.0.0 ## The default is latest edition
volumeMounts:
- name: nfs-client-root
mountPath: /persistentvolumes
env:
- name: PROVISIONER_NAME
value: fuseim.pri/ifs ## The supplier name here must be the same as class.yaml Medium provisioner The names are the same , Otherwise, the deployment will not succeed
- name: NFS_SERVER
value: k8s-nfs ## Write here NFS Server's IP Address or host name that can be resolved
- name: NFS_PATH
value: /data/volumes/v1 ## Write here NFS Shared mount directory in the server ( emphasize : The path here must be the last folder in the directory , Otherwise, the deployed application will not have permission to create a directory, resulting in Pending)
volumes:
- name: nfs-client-root
nfs:
server: k8s-nfs ##NFS Server's IP Or resolvable hostname
path: /data/volumes/v1 ##NFS Shared mount directory in the server ( emphasize : The path here must be the last folder in the directory , Otherwise, the deployed application will not have permission to create a directory, resulting in Pending)
4. Deploy
kubectl apply -f .
5. View service
Check out this NFS The plug-in pod Whether the deployment is successful 
6. see storageclass

边栏推荐
- FPGA - SPI bus control flash (2) (including code)
- 全局事件总线
- Redis源码与设计剖析 -- 8.对象系统
- Chapter 3 Standard Input
- Ue5 official case Lyra full feature explanation 6. generate defense tower
- 《天幕红尘》笔记与思考(四)相互价值无效
- How to protect the copyright of NFT digital collections?
- Antlr4 introductory learning (I): Download and test
- PyQt5_ Qlistwidget paging multiple selection control
- 跳转语句与调试程序
猜你喜欢
随机推荐
JMeter record the BeanShell written into excel instance caused by an automatic data generation
Niuke brush questions - Sword finger offer (phase II)
写驱动程序的时候warning LNK4210报错
SQLZOO——SELECT from WORLD Tutorial
MapReduce advanced
Linux: database connection
SQLZOO——SELECT from WORLD Tutorial
【Unity】AVPro使用踩坑,编辑器模式使用视频播放正常,打包后视频无法播放的问题
How Alibaba cloud resolves a domain name to another domain name
交换机Exchanges
TZC 1283: simple sort - heap sort
Leetcode skimming -- bit by bit record 022
添加信任列表
数据湖:Apache Iceberg介绍
12 open source background management systems suitable for outsourcing projects
Redis源码与设计剖析 -- 11.哈希对象
【无标题】
构建人工智能产品/业务的两种策略(by Andrew Ng)
HoloLens第三视角开发【保姆级教程】【踩坑记录】
PyQt5_ Qlistwidget paging multiple selection control

![[Delphi] a simple method to make the installation icon of the control panel (translation)](/img/e9/2a9c509e4ebbd4ff0a32be547e1cbb.png)






