Skip to content

Commit

Permalink
feat: set replicas separately (#26)
Browse files Browse the repository at this point in the history
Signed-off-by: Bird <aflybird0@gmail.com>

Signed-off-by: Bird <aflybird0@gmail.com>
  • Loading branch information
aFlyBird0 authored Nov 19, 2022
1 parent 5427695 commit 7adae20
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/shenyu/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion charts/shenyu/templates/shenyu-admin-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion charts/shenyu/templates/shenyu-bootstrap-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 4 additions & 1 deletion charts/shenyu/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 7adae20

Please sign in to comment.