Skip to content

Commit

Permalink
build: v3.3.0 chart
Browse files Browse the repository at this point in the history
  • Loading branch information
liuruibin committed Sep 27, 2024
1 parent e26ffbf commit 2901ee9
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 51 deletions.
6 changes: 3 additions & 3 deletions charts/metersphere/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
apiVersion: v2
appVersion: 3.0.0-beta
appVersion: 3.3.0
description: A Helm chart to deploy MeterSphere
engine: gotpl
home: https://metersphere.io
icon: https://metersphere.io/images/logo/favicon.ico
maintainers:
- email: [email protected]
name: metersphere
name: metersphere
name: metersphere3
sources:
- https://github.com/metersphere/
dependencies:
- name: kafka
repository: https://charts.bitnami.com/bitnami
condition: kafka.enabled
version: 26.0.0
version: 3.0.0-beta
version: 3.3.0
2 changes: 1 addition & 1 deletion charts/metersphere/templates/02-pvc/data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ spec:
requests:
storage: {{.Values.dataPersistence.size}}
storageClassName: {{.Values.common.storageClass}}
{{if .Values.nodeController.enabled }}
{{if .Values.taskRunner.enabled }}
---
kind: PersistentVolumeClaim
apiVersion: v1
Expand Down
25 changes: 10 additions & 15 deletions charts/metersphere/templates/03-modules/metersphere.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{{if .Values.apiTest.enabled }}
{{if .Values.metersphere.enabled }}
apiVersion: apps/v1
kind: Deployment
metadata:
name: metersphere
spec:
replicas: {{.Values.apiTest.replicas | default 1}}
replicas: {{.Values.metersphere.replicas | default 1}}
selector:
matchLabels:
app: metersphere
Expand Down Expand Up @@ -69,21 +69,11 @@ spec:
echo "Kafka bootstrap $i is OK now."
sleep 5
done
- name: wait-system-setting
image: busybox:latest
imagePullPolicy: IfNotPresent
command:
- sh
- -c
- |
set -ex
until nc -zv metersphere-system-setting 8001; do sleep 5; done
sleep 10
serviceAccountName: metersphere
{{ end }}
containers:
- name: metersphere
image: {{.Values.common.imagePrefix}}{{.Values.apiTest.image}}:{{.Values.common.imageTag}}
image: {{.Values.common.imagePrefix}}{{.Values.common.image}}:{{.Values.common.imageTag}}
imagePullPolicy: {{.Values.common.imagePullPolicy}}
resources:
limits:
Expand All @@ -93,7 +83,7 @@ spec:
cpu: 0.1
ports:
- name: http
containerPort: 8004
containerPort: 8081
env:
- name: FORMAT_MESSAGES_PATTERN_DISABLE_LOOKUPS
value: "true"
Expand All @@ -104,6 +94,11 @@ spec:
name: metersphere-config
key: kafka.bootstrap-servers
{{ end }}
command:
- sh
- -c
- |
sh /shells/metersphere.sh
volumeMounts:
- mountPath: /opt/metersphere/conf
name: opt-metersphere-config
Expand Down Expand Up @@ -156,6 +151,6 @@ spec:
app: metersphere
ports:
- name: http
port: 8004
port: 8081
protocol: TCP
{{end}}
27 changes: 10 additions & 17 deletions charts/metersphere/templates/03-modules/result-hub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ spec:
done
containers:
- name: result-hub
image: {{.Values.common.imagePrefix}}{{.Values.dataStreaming.image}}:{{.Values.common.imageTag}}
image: {{.Values.common.imagePrefix}}{{.Values.common.image}}:{{.Values.common.imageTag}}
imagePullPolicy: {{.Values.common.imagePullPolicy}}
resources:
limits:
Expand All @@ -71,6 +71,11 @@ spec:
env:
- name: FORMAT_MESSAGES_PATTERN_DISABLE_LOOKUPS
value: "true"
command:
- sh
- -c
- |
sh /shells/result-hub.sh
volumeMounts:
- mountPath: /opt/metersphere/conf
name: opt-metersphere-config
Expand All @@ -85,8 +90,10 @@ spec:
defaultMode: 420
name: metersphere-config
items:
- key: common.properties
- key: metersphere.properties
path: metersphere.properties
- key: redisson.yml
path: redisson.yml
name: opt-metersphere-config
- name: metersphere-logs
{{if .Values.logPersistence.enabled}}
Expand All @@ -95,19 +102,5 @@ spec:
{{ else }}
emptyDir: {}
{{ end }}
---
apiVersion: v1
kind: Service
metadata:
name: result-hub
labels:
app: result-hub
spec:
sessionAffinity: ClientIP
selector:
app: result-hub
ports:
- name: http
port: 8084
protocol: TCP

{{end}}
17 changes: 10 additions & 7 deletions charts/metersphere/templates/03-modules/task-runner.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{{if .Values.nodeController.enabled }}
{{if .Values.taskRunner.enabled }}
apiVersion: apps/v1
kind: Deployment
metadata:
name: task-runner
spec:
replicas: {{.Values.nodeController.replicas | default 1}}
replicas: {{.Values.taskRunner.replicas | default 1}}
selector:
matchLabels:
app: task-runner
Expand Down Expand Up @@ -47,7 +47,7 @@ spec:
done
containers:
- name: task-runner
image: {{.Values.common.imagePrefix}}{{.Values.nodeController.image}}:{{.Values.common.imageTag}}
image: {{.Values.common.imagePrefix}}{{.Values.common.image}}:{{.Values.common.imageTag}}
imagePullPolicy: {{.Values.common.imagePullPolicy}}
resources:
limits:
Expand All @@ -57,13 +57,16 @@ spec:
cpu: 0.1
ports:
- name: http
containerPort: 8082
containerPort: 8000
env:
- name: FORMAT_MESSAGES_PATTERN_DISABLE_LOOKUPS
value: "true"
command:
- sh
- -c
- |
sh /shells/task-runner.sh
volumeMounts:
- mountPath: /opt/metersphere/conf
name: opt-metersphere-config
- mountPath: /opt/metersphere/logs
name: metersphere-logs
- mountPath: /opt/metersphere/data
Expand Down Expand Up @@ -100,6 +103,6 @@ spec:
app: task-runner
ports:
- name: http
port: 8082
port: 8000
protocol: TCP
{{end}}
4 changes: 2 additions & 2 deletions charts/metersphere/templates/04-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ spec:
pathType: Prefix
backend:
service:
name: metersphere-gateway
name: metersphere
port:
number: 8000
number: 8081
{{if .Values.ingress.https.enabled}}
tls:
- hosts:
Expand Down
20 changes: 14 additions & 6 deletions charts/metersphere/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ common:
image: "metersphere-ce"
imagePullSecrets: nil
storageClass: default
imageTag: v3.0.0-beta
imageTag: v3.3.0
imagePullPolicy: Always
properties: |-
## DATABASE
Expand Down Expand Up @@ -46,10 +46,18 @@ redisson:
address: "redis://{{.Values.redis.host}}:{{.Values.redis.port}}"
database: {{.Values.redis.database}}
metersphere:
enabled: true
replicas: 1

resultHub:
enabled: true
replicas: 1

taskRunner:
enabled: true
replicas: 1

logPersistence:
enabled: true
accessModes: ReadWriteMany
Expand All @@ -63,7 +71,7 @@ dataPersistence:
mysql:
enabled: true
image: mysql
imageTag: "8.0.35"
imageTag: "8.0.38"
host: metersphere-mysql
port: 3306
username: root
Expand All @@ -75,7 +83,7 @@ mysql:
minio:
enabled: true
image: minio
imageTag: "RELEASE.2023-11-06T22-26-08Z"
imageTag: "RELEASE.2024-05-07T06-41-25Z"
username: admin
password: Password123@minio
host: metersphere-minio
Expand All @@ -87,7 +95,7 @@ minio:
redis:
enabled: true
image: redis
imageTag: "6.2.6"
imageTag: "7.2.5-alpine"
password: Password123@redis
host: metersphere-redis
port: 6379
Expand All @@ -98,8 +106,8 @@ redis:
size: 10Gi
kafka:
enabled: true
fullnameOverride: metersphere-kafka
host: metersphere-kafka
fullnameOverride: kafka
host: kafka
port: 9092
metricTopic: JMETER_METRICS
logTopic: JMETER_LOGS
Expand Down

0 comments on commit 2901ee9

Please sign in to comment.