diff --git a/deploy/helm/templates/trivy-server/statefulset.yaml b/deploy/helm/templates/trivy-server/statefulset.yaml index 8106da368..db5c299c0 100644 --- a/deploy/helm/templates/trivy-server/statefulset.yaml +++ b/deploy/helm/templates/trivy-server/statefulset.yaml @@ -143,6 +143,9 @@ spec: hostPath: path: {{ . }} {{- end }} + {{- with .Values.affinity }} + affinity: {{- toYaml . | nindent 8 }} + {{- end }} {{- with .Values.tolerations }} tolerations: {{- toYaml . | nindent 8 }} {{- end }}