Skip to content

Commit

Permalink
add node affinity with sink-backfill
Browse files Browse the repository at this point in the history
  • Loading branch information
coutug committed Aug 2, 2024
1 parent df40e6d commit b4ab3c0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/substreams-sink-sql-backfill/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.0.10
version: 0.0.11

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
7 changes: 7 additions & 0 deletions charts/substreams-sink-sql-backfill/templates/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ spec:
labels:
{{- include "substreams-sink-sql-backfill.labels" $ | nindent 8 }}
spec:
{{- if $values.nodeAffinity }}
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
{{- $values.nodeAffinity | toYaml | nindent 12}}
{{- end }}
containers:
# Container to create cursor tables
- name: {{ include "substreams-sink-sql-backfill.fullname" $ }}-create-tables
Expand Down
7 changes: 7 additions & 0 deletions charts/substreams-sink-sql-backfill/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ image:
nameOverride: ""
fullnameOverride: ""

# nodeAffinity:
# - matchExpressions:
# - key: kubernetes.io/hostname
# operator: NotIn # In or NotIn
# values:
# - dom85

# Secret to pull image from private repo
imagePullSecret: ghcr-cred

Expand Down

0 comments on commit b4ab3c0

Please sign in to comment.