当前位置:网站首页>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

边栏推荐
- Ue5 official case Lyra full feature explanation 6. generate defense tower
- Li Hongyi machine learning 2022-hw1
- C language explanation series - understanding of functions (1) library functions, user-defined functions
- 李宏毅机器学习2022-HW1
- 网络安全等级保护2.0标准解析
- Response对象
- Meituan's 8-year experience on how to improve test engineers (automation, performance, test development)
- 软件测试基本概念篇
- 300 questions, Lecture 6, quadratic form
- 添加信任列表
猜你喜欢

【Unity日常Bug】Unity报错Unexpected character ‘‘
![[Delphi] a simple method to make the installation icon of the control panel (translation)](/img/e9/2a9c509e4ebbd4ff0a32be547e1cbb.png)
[Delphi] a simple method to make the installation icon of the control panel (translation)

Question 300 Leçon 6 type quadratique

SQLZOO——SELECT Quiz

低代码平台搭建医药企业供应商、医院、患者等多方协同管理案例分析

Anaconda虚拟环境下安装opencv报错的问题

kex_ exchange_ Identification: read: connection reset by peer imperfect solution (one)

Wechat applet package wx.request

The wave of the meta universe is shocking. Seize the opportunity and work together

Redis源码与设计剖析 -- 10.列表对象
随机推荐
排序
Question 300 Leçon 6 type quadratique
China Economic Net: "Yuan universe" is hot
Meituan's 8-year experience on how to improve test engineers (automation, performance, test development)
资源池以及资源池化是什么意思?
SQLZOO——SELECT from WORLD Tutorial
300 questions, Lecture 6, quadratic form
3dMax先蒙皮刷权重,再附加合并
【无标题】
为什么我们无法写出真正可重用的C#/F#代码?
C语言详解系列——函数的认识(1)库函数,自定义函数
Interpretation of ultra fast deep lane detection with hybrid anchor driven ordinal classification
Toco generates tflite model
How Alibaba cloud resolves a domain name to another domain name
Li Nan, CTO of Yunqian Technology: technology and technical people, coevolution with digitalization
Chapter 4: runtime data area - shared space
Kubernetes技术与架构(六)
美团8年经验之谈,测试工程师如何进阶(自动化、性能、测开)
MySQL log understanding
SVG、canvas、绘制线段和填充多边形、矩形、曲线的绘制和填充