chore(ui): modify Affinity of UI in deploy.yaml
Change the number of the replica from 1 to 2. Ref: 4987 Signed-off-by: James Lu <james.lu@suse.com>
This commit is contained in:
parent
bb8e9a143b
commit
be24195384
@ -4091,7 +4091,7 @@ metadata:
|
||||
name: longhorn-ui
|
||||
namespace: longhorn-system
|
||||
spec:
|
||||
replicas: 1
|
||||
replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app: longhorn-ui
|
||||
@ -4103,6 +4103,18 @@ spec:
|
||||
app.kubernetes.io/version: v1.4.0-rc1
|
||||
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: longhornio/longhorn-ui:v1.4.0-rc1
|
||||
|
Loading…
Reference in New Issue
Block a user