Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion deployment/helm/charts/onyx/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ home: https://www.onyx.app/
sources:
- "https://github.com/onyx-dot-app/onyx"
type: application
version: 0.2.9
version: 0.2.10
appVersion: latest
annotations:
category: Productivity
Expand Down
4 changes: 4 additions & 0 deletions deployment/helm/charts/onyx/templates/api-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ spec:
serviceAccountName: {{ include "onyx-stack.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.api.podSecurityContext | nindent 8 }}
{{- with .Values.api.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: api-server
securityContext:
Expand Down
4 changes: 4 additions & 0 deletions deployment/helm/charts/onyx/templates/celery-beat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ spec:
serviceAccountName: {{ include "onyx-stack.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.celery_shared.podSecurityContext | nindent 8 }}
{{- with .Values.celery_beat.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: celery-beat
securityContext:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ spec:
serviceAccountName: {{ include "onyx-stack.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.celery_shared.podSecurityContext | nindent 8 }}
{{- with .Values.celery_worker_docfetching.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: celery-worker-docfetching
securityContext:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ spec:
serviceAccountName: {{ include "onyx-stack.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.celery_shared.podSecurityContext | nindent 8 }}
{{- with .Values.celery_worker_docprocessing.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: celery-worker-docprocessing
securityContext:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ spec:
serviceAccountName: {{ include "onyx-stack.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.celery_shared.podSecurityContext | nindent 8 }}
{{- with .Values.celery_worker_heavy.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: celery-worker-heavy
securityContext:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ spec:
serviceAccountName: {{ include "onyx-stack.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.celery_shared.podSecurityContext | nindent 8 }}
{{- with .Values.celery_worker_light.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: celery-worker-light
securityContext:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ spec:
serviceAccountName: {{ include "onyx-stack.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.celery_shared.podSecurityContext | nindent 8 }}
{{- with .Values.celery_worker_monitoring.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: celery-worker-monitoring
securityContext:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ spec:
serviceAccountName: {{ include "onyx-stack.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.celery_shared.podSecurityContext | nindent 8 }}
{{- with .Values.celery_worker_primary.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: celery-worker-primary
securityContext:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ spec:
serviceAccountName: {{ include "onyx-stack.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.celery_shared.podSecurityContext | nindent 8 }}
{{- with .Values.celery_worker_user_files_indexing.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: celery-worker-user-files-indexing
securityContext:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ spec:
securityContext:
{{- toYaml .Values.indexCapability.podSecurityContext | nindent 8 }}
{{- end }}
{{- with .Values.indexCapability.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: {{ .Values.indexCapability.name }}
image: "{{ .Values.indexCapability.image.repository }}:{{ .Values.indexCapability.image.tag | default .Values.global.version }}"
Expand All @@ -51,4 +55,4 @@ spec:
{{- if .Values.indexCapability.resources }}
resources:
{{- toYaml .Values.indexCapability.resources | nindent 10 }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ spec:
securityContext:
{{- toYaml .Values.inferenceCapability.podSecurityContext | nindent 8 }}
{{- end }}
{{- with .Values.inferenceCapability.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: model-server-inference
image: "{{ .Values.inferenceCapability.image.repository }}:{{ .Values.inferenceCapability.image.tag | default .Values.global.version }}"
Expand All @@ -46,4 +50,3 @@ spec:
resources:
{{- toYaml .Values.inferenceCapability.resources | nindent 10 }}
{{- end }}

4 changes: 4 additions & 0 deletions deployment/helm/charts/onyx/templates/slackbot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ spec:
serviceAccountName: {{ include "onyx-stack.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.slackbot.podSecurityContext | nindent 8 }}
{{- with .Values.slackbot.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: slackbot
securityContext:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ spec:
serviceAccountName: {{ include "onyx-stack.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.webserver.podSecurityContext | nindent 8 }}
{{- with .Values.webserver.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: web-server
securityContext:
Expand Down
3 changes: 3 additions & 0 deletions deployment/helm/charts/onyx/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ inferenceCapability:
securityContext:
privileged: true
runAsUser: 0
nodeSelector: {}

indexCapability:
service:
Expand Down Expand Up @@ -133,6 +134,7 @@ indexCapability:
securityContext:
privileged: true
runAsUser: 0
nodeSelector: {}
config:
envConfigMapName: env-configmap

Expand Down Expand Up @@ -513,6 +515,7 @@ slackbot:
limits:
cpu: "1000m"
memory: "2000Mi"
nodeSelector: {}

celery_worker_docfetching:
replicaCount: 1
Expand Down
Loading