From 7adae20a5d8921ce934c9ba621d76b7bf78ca26b Mon Sep 17 00:00:00 2001 From: Bird Date: Sat, 19 Nov 2022 17:51:54 +0800 Subject: [PATCH] feat: set replicas separately (#26) Signed-off-by: Bird Signed-off-by: Bird --- charts/shenyu/Chart.yaml | 2 +- charts/shenyu/templates/shenyu-admin-deployment.yaml | 2 +- charts/shenyu/templates/shenyu-bootstrap-deployment.yaml | 2 +- charts/shenyu/values.yaml | 5 ++++- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/charts/shenyu/Chart.yaml b/charts/shenyu/Chart.yaml index 3df8de3..b6353b5 100644 --- a/charts/shenyu/Chart.yaml +++ b/charts/shenyu/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: shenyu description: Helm Chart for deploying Apache ShenYu in Kubernetes type: application -version: 0.5.1 +version: 0.5.2 appVersion: "2.5.0" icon: https://shenyu.apache.org/img/logo.png maintainers: diff --git a/charts/shenyu/templates/shenyu-admin-deployment.yaml b/charts/shenyu/templates/shenyu-admin-deployment.yaml index d90ce27..63807ec 100644 --- a/charts/shenyu/templates/shenyu-admin-deployment.yaml +++ b/charts/shenyu/templates/shenyu-admin-deployment.yaml @@ -14,7 +14,7 @@ spec: matchLabels: "app.kubernetes.io/component": "shenyu-admin" "app.kubernetes.io/instance": "{{ .Release.Name }}" - replicas: {{ .Values.replicas }} + replicas: {{ .Values.admin.replicas }} template: metadata: labels: diff --git a/charts/shenyu/templates/shenyu-bootstrap-deployment.yaml b/charts/shenyu/templates/shenyu-bootstrap-deployment.yaml index caad258..28d9412 100644 --- a/charts/shenyu/templates/shenyu-bootstrap-deployment.yaml +++ b/charts/shenyu/templates/shenyu-bootstrap-deployment.yaml @@ -15,7 +15,7 @@ spec: matchLabels: "app.kubernetes.io/component": "shenyu-bootstrap" "app.kubernetes.io/instance": "{{ .Release.Name }}" - replicas: {{ .Values.replicas }} + replicas: {{ .Values.bootstrap.replicas }} template: metadata: labels: diff --git a/charts/shenyu/values.yaml b/charts/shenyu/values.yaml index 9bf77cf..8c5cb5d 100644 --- a/charts/shenyu/values.yaml +++ b/charts/shenyu/values.yaml @@ -3,9 +3,10 @@ ################################################# # it's not recommended to change this version version: 2.5.0 -replicas: 1 admin: enabled: true + # replicas of admin, K8s will load balance the requests + replicas: 1 image: apache/shenyu-admin # if you want to change "admin service port", please edit here nodePort: 31095 @@ -21,6 +22,8 @@ admin: # memory: 1024Mi bootstrap: enabled: true + # replicas of bootstrap, K8s will load balance the requests + replicas: 2 image: apache/shenyu-bootstrap # if you want to change "bootstrap service port", please edit here nodePort: 31195