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
b2c607d4ae
commit
1b7c7fc45b
@ -3610,7 +3610,7 @@ metadata:
|
|||||||
name: longhorn-ui
|
name: longhorn-ui
|
||||||
namespace: longhorn-system
|
namespace: longhorn-system
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 2
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: longhorn-ui
|
app: longhorn-ui
|
||||||
@ -3622,6 +3622,18 @@ spec:
|
|||||||
app.kubernetes.io/version: v1.3.2
|
app.kubernetes.io/version: v1.3.2
|
||||||
app: longhorn-ui
|
app: longhorn-ui
|
||||||
spec:
|
spec:
|
||||||
|
affinity:
|
||||||
|
podAntiAffinity:
|
||||||
|
preferredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
- weight: 1
|
||||||
|
podAffinityTerm:
|
||||||
|
labelSelector:
|
||||||
|
matchExpressions:
|
||||||
|
- key: app
|
||||||
|
operator: In
|
||||||
|
values:
|
||||||
|
- longhorn-ui
|
||||||
|
topologyKey: kubernetes.io/hostname
|
||||||
containers:
|
containers:
|
||||||
- name: longhorn-ui
|
- name: longhorn-ui
|
||||||
image: longhornio/longhorn-ui:v1.3.2
|
image: longhornio/longhorn-ui:v1.3.2
|
||||||
|
Loading…
Reference in New Issue
Block a user