Skip to content
Snippets Groups Projects
Verified Commit dbc70640 authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

feat(goharbor): add anti-affinity to registry

This patch should provide a first draft for anti-affinity for pods in
the harbor deployment. This should help to spread harbor pods across
nodes, ensuring that a single-node failure doesn't take out the entire
application.
parent af1a352e
Branches
Tags
No related merge requests found
......@@ -69,6 +69,18 @@ spec:
limits:
memory: 128Mi
cpu: 250m
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: component
operator: In
values:
- registry
topologyKey: kubernetes.io/hostname
chartmuseum:
resources:
requests:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment