Skip to content

Commit

Permalink
chore: configure tolerations and affinity for gitaly
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbmay authored Aug 21, 2024
1 parent aa11e41 commit c3f7385
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions bundles/uds-core-swf/uds-bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,16 @@ packages:
- name: DEPLOYMENT_REPLICACOUNT
path: replicaCount
default: 3
nutanix-csi-storage:
nutanix-csi-storage:
variables:
- name: CSI_NODE_TOLERATIONS
description: "Tolerations to apply to the CSI node pods."
path: node.tolerations
default:
- effect: NoSchedule
key: dedicated-gitaly-node
operator: Exists

- name: trust-manager
path: ../../build
Expand Down Expand Up @@ -500,6 +510,37 @@ packages:
- name: SHELL_REPLICAS
description: "Gitlab Shell Min Replicas"
path: "gitlab.gitlab-shell.minReplicas"
- name: TOLERATIONS
description: "Tolerations to allow gitaly to schedule on tainted nodes."
path: gitlab.gitaly.tolerations
default:
- effect: NoSchedule
key: dedicated-gitaly-node
operator: Exists
- name: AFFINITY
description: "Affinity settings to prefer scheduling on dedicated gitaly nodes and avoid nodes already running gitaly."
path: gitlab.gitaly.affinity
default:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app
operator: In
values:
- gitaly
topologyKey: kubernetes.io/hostname
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 1
preference:
matchExpressions:
- key: dedicated
operator: In
values:
- gitaly-node

# Gitlab Runner
- name: gitlab-runner
Expand Down

0 comments on commit c3f7385

Please sign in to comment.