Skip to content

Commit a4bae55

Browse files
feat(infra): Add Node Selector option to all Templates (onyx-dot-app#5384)
1 parent 4af375b commit a4bae55

15 files changed

+57
-3
lines changed

deployment/helm/charts/onyx/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ home: https://www.onyx.app/
55
sources:
66
- "https://github.com/onyx-dot-app/onyx"
77
type: application
8-
version: 0.2.9
8+
version: 0.2.10
99
appVersion: latest
1010
annotations:
1111
category: Productivity

deployment/helm/charts/onyx/templates/api-deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ spec:
3333
serviceAccountName: {{ include "onyx-stack.serviceAccountName" . }}
3434
securityContext:
3535
{{- toYaml .Values.api.podSecurityContext | nindent 8 }}
36+
{{- with .Values.api.nodeSelector }}
37+
nodeSelector:
38+
{{- toYaml . | nindent 8 }}
39+
{{- end }}
3640
containers:
3741
- name: api-server
3842
securityContext:

deployment/helm/charts/onyx/templates/celery-beat.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ spec:
3131
serviceAccountName: {{ include "onyx-stack.serviceAccountName" . }}
3232
securityContext:
3333
{{- toYaml .Values.celery_shared.podSecurityContext | nindent 8 }}
34+
{{- with .Values.celery_beat.nodeSelector }}
35+
nodeSelector:
36+
{{- toYaml . | nindent 8 }}
37+
{{- end }}
3438
containers:
3539
- name: celery-beat
3640
securityContext:

deployment/helm/charts/onyx/templates/celery-worker-docfetching.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ spec:
3333
serviceAccountName: {{ include "onyx-stack.serviceAccountName" . }}
3434
securityContext:
3535
{{- toYaml .Values.celery_shared.podSecurityContext | nindent 8 }}
36+
{{- with .Values.celery_worker_docfetching.nodeSelector }}
37+
nodeSelector:
38+
{{- toYaml . | nindent 8 }}
39+
{{- end }}
3640
containers:
3741
- name: celery-worker-docfetching
3842
securityContext:

deployment/helm/charts/onyx/templates/celery-worker-docprocessing.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ spec:
3333
serviceAccountName: {{ include "onyx-stack.serviceAccountName" . }}
3434
securityContext:
3535
{{- toYaml .Values.celery_shared.podSecurityContext | nindent 8 }}
36+
{{- with .Values.celery_worker_docprocessing.nodeSelector }}
37+
nodeSelector:
38+
{{- toYaml . | nindent 8 }}
39+
{{- end }}
3640
containers:
3741
- name: celery-worker-docprocessing
3842
securityContext:

deployment/helm/charts/onyx/templates/celery-worker-heavy.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ spec:
3333
serviceAccountName: {{ include "onyx-stack.serviceAccountName" . }}
3434
securityContext:
3535
{{- toYaml .Values.celery_shared.podSecurityContext | nindent 8 }}
36+
{{- with .Values.celery_worker_heavy.nodeSelector }}
37+
nodeSelector:
38+
{{- toYaml . | nindent 8 }}
39+
{{- end }}
3640
containers:
3741
- name: celery-worker-heavy
3842
securityContext:

deployment/helm/charts/onyx/templates/celery-worker-light.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ spec:
3333
serviceAccountName: {{ include "onyx-stack.serviceAccountName" . }}
3434
securityContext:
3535
{{- toYaml .Values.celery_shared.podSecurityContext | nindent 8 }}
36+
{{- with .Values.celery_worker_light.nodeSelector }}
37+
nodeSelector:
38+
{{- toYaml . | nindent 8 }}
39+
{{- end }}
3640
containers:
3741
- name: celery-worker-light
3842
securityContext:

deployment/helm/charts/onyx/templates/celery-worker-monitoring.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ spec:
3333
serviceAccountName: {{ include "onyx-stack.serviceAccountName" . }}
3434
securityContext:
3535
{{- toYaml .Values.celery_shared.podSecurityContext | nindent 8 }}
36+
{{- with .Values.celery_worker_monitoring.nodeSelector }}
37+
nodeSelector:
38+
{{- toYaml . | nindent 8 }}
39+
{{- end }}
3640
containers:
3741
- name: celery-worker-monitoring
3842
securityContext:

deployment/helm/charts/onyx/templates/celery-worker-primary.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ spec:
3333
serviceAccountName: {{ include "onyx-stack.serviceAccountName" . }}
3434
securityContext:
3535
{{- toYaml .Values.celery_shared.podSecurityContext | nindent 8 }}
36+
{{- with .Values.celery_worker_primary.nodeSelector }}
37+
nodeSelector:
38+
{{- toYaml . | nindent 8 }}
39+
{{- end }}
3640
containers:
3741
- name: celery-worker-primary
3842
securityContext:

deployment/helm/charts/onyx/templates/celery-worker-user-files-indexing.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ spec:
3333
serviceAccountName: {{ include "onyx-stack.serviceAccountName" . }}
3434
securityContext:
3535
{{- toYaml .Values.celery_shared.podSecurityContext | nindent 8 }}
36+
{{- with .Values.celery_worker_user_files_indexing.nodeSelector }}
37+
nodeSelector:
38+
{{- toYaml . | nindent 8 }}
39+
{{- end }}
3640
containers:
3741
- name: celery-worker-user-files-indexing
3842
securityContext:

0 commit comments

Comments
 (0)