chore(ui): modify Affinity of UI for helm chart

Change the number of the replica from 1 to 2 for helm chart

Ref: 4987

Signed-off-by: James Lu <james.lu@suse.com>
This commit is contained in:
James Lu 2022-12-15 15:22:12 +08:00 committed by David Ko
parent be24195384
commit 404956f789
2 changed files with 13 additions and 1 deletions

View File

@ -15,6 +15,18 @@ spec:
labels: {{- include "longhorn.labels" . | nindent 8 }}
app: longhorn-ui
spec:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 1
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app
operator: In
values:
- longhorn-ui
topologyKey: kubernetes.io/hostname
containers:
- name: longhorn-ui
image: {{ template "registry_url" . }}{{ .Values.image.longhorn.ui.repository }}:{{ .Values.image.longhorn.ui.tag }}

View File

@ -203,7 +203,7 @@ longhornDriver:
# label-key2: "label-value2"
longhornUI:
replicas: 1
replicas: 2
priorityClass: ~
tolerations: []
## If you want to set tolerations for Longhorn UI Deployment, delete the `[]` in the line above