diff --git a/charts/database/templates/database-deployment.yaml b/charts/database/templates/database-deployment.yaml index 0e5fb9b..d6b1ba7 100644 --- a/charts/database/templates/database-deployment.yaml +++ b/charts/database/templates/database-deployment.yaml @@ -19,6 +19,10 @@ spec: labels: app: deis-database spec: +{{- with .Values.global.affinity }} + affinity: +{{ toYaml . | indent 8 }} +{{- end }} serviceAccount: deis-database containers: - name: deis-database