Harbor replicas and anit-affinity
This commit is contained in:
parent
2427fe07ba
commit
7d9b9c1b1f
@ -36,18 +36,50 @@ spec:
|
||||
updateStrategy:
|
||||
type: Recreate
|
||||
portal:
|
||||
replicas: 2
|
||||
resources:
|
||||
requests:
|
||||
memory: 64Mi
|
||||
affinity:
|
||||
podAntiAffinity:
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
- labelSelector:
|
||||
matchExpressions:
|
||||
- key: component
|
||||
operator: In
|
||||
values:
|
||||
- portal
|
||||
- key: app
|
||||
operator: In
|
||||
values:
|
||||
- harbor
|
||||
topologyKey: kubernetes.io/hostname
|
||||
core:
|
||||
replicas: 2
|
||||
resources:
|
||||
requests:
|
||||
memory: 64Mi
|
||||
affinity:
|
||||
podAntiAffinity:
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
- labelSelector:
|
||||
matchExpressions:
|
||||
- key: component
|
||||
operator: In
|
||||
values:
|
||||
- core
|
||||
- key: app
|
||||
operator: In
|
||||
values:
|
||||
- harbor
|
||||
topologyKey: kubernetes.io/hostname
|
||||
jobservice:
|
||||
replicas: 1
|
||||
resources:
|
||||
requests:
|
||||
memory: 64Mi
|
||||
registry:
|
||||
replicas: 2
|
||||
registry:
|
||||
resources:
|
||||
requests:
|
||||
@ -56,3 +88,17 @@ spec:
|
||||
resources:
|
||||
requests:
|
||||
memory: 64Mi
|
||||
affinity:
|
||||
podAntiAffinity:
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
- labelSelector:
|
||||
matchExpressions:
|
||||
- key: component
|
||||
operator: In
|
||||
values:
|
||||
- registry
|
||||
- key: app
|
||||
operator: In
|
||||
values:
|
||||
- harbor
|
||||
topologyKey: kubernetes.io/hostname
|
||||
|
Loading…
Reference in New Issue
Block a user