Skip to content

Commit

Permalink
cleanup: controller redundant configuration (#98)
Browse files Browse the repository at this point in the history
Signed-off-by: iutx <root@viper.run>
  • Loading branch information
iutx committed Dec 6, 2022
1 parent ba28b89 commit 0bbff5b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion helm/higress/templates/controller-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
{{- include "controller.labels" . | nindent 4 }}
spec:
{{- if not .Values.controller.autoscaling.enabled }}
replicas: {{ .Values.controller.replicaCount }}
replicas: {{ .Values.controller.replicas }}
{{- end }}
selector:
matchLabels:
Expand Down
2 changes: 1 addition & 1 deletion helm/higress/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ metadata:
spec:
{{- if not .Values.gateway.autoscaling.enabled }}
{{- if not .Values.global.kind }}
replicas: {{ .Values.gateway.replicaCount }}
replicas: {{ .Values.gateway.replicas }}
{{- else }}
replicas: 1
{{- end }}
Expand Down
5 changes: 2 additions & 3 deletions helm/higress/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ istioNamespace: "istio-system"
meshConfig: {}
gateway:
name: "higress-gateway"
replicaCount: 2
replicas: 2
image: gateway
tag: "268c73301e78514552fe0576fb0059c42c854a5c"
# revision declares which revision this gateway is a part of
Expand Down Expand Up @@ -109,11 +109,10 @@ gateway:

controller:
name: "higress-controller"
replicaCount: 1
replicas: 1
image: higress
tag: "268c73301e78514552fe0576fb0059c42c854a5c"
env: {}
replicaCount: 1

labels: {}

Expand Down

0 comments on commit 0bbff5b

Please sign in to comment.