Skip to content

Commit

Permalink
Add Pod affinity to run blobvault nginx on same node as worker
Browse files Browse the repository at this point in the history
  • Loading branch information
mjasion committed Aug 9, 2023
1 parent d18cf22 commit 44def65
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions charts/studio/templates/deployment-studio-blobvault-nginx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,10 @@ spec:
- name: blobvault-pvc
persistentVolumeClaim:
claimName: blobvault
{{/* {{- with .Values.studioBlobvault.nodeSelector }}*/}}
{{/* nodeSelector:*/}}
{{/* {{- toYaml . | nindent 8 }}*/}}
{{/* {{- end }}*/}}
{{/* {{- with .Values.studioBlobvault.affinity }}*/}}
{{/* affinity:*/}}
{{/* {{- toYaml . | nindent 8 }}*/}}
{{/* {{- end }}*/}}
{{/* {{- with .Values.studioBlobvault.tolerations }}*/}}
{{/* tolerations:*/}}
{{/* {{- toYaml . | nindent 8 }}*/}}
{{/* {{- end }}*/}}
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- topologyKey: "kubernetes.io/hostname"
labelSelector:
matchLabels:
{{- include "studio-worker.selectorLabels" . | nindent 18 }}

0 comments on commit 44def65

Please sign in to comment.