This is an automated email from the ASF dual-hosted git repository.
xiaoyu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/shenyu-helm-chart.git
The following commit(s) were added to refs/heads/main by this push:
new 7adae20 feat: set replicas separately (#26)
7adae20 is described below
commit 7adae20a5d8921ce934c9ba621d76b7bf78ca26b
Author: Bird <[email protected]>
AuthorDate: Sat Nov 19 17:51:54 2022 +0800
feat: set replicas separately (#26)
Signed-off-by: Bird <[email protected]>
Signed-off-by: Bird <[email protected]>
---
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