From 1f62830b28957bc1e0c92ae82f2bd314619a1277 Mon Sep 17 00:00:00 2001 From: lijianguo Date: Wed, 16 Mar 2022 17:43:17 +0800 Subject: [PATCH] feat(passport): add affinity --- charts/passport/templates/passport-deployment.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/charts/passport/templates/passport-deployment.yaml b/charts/passport/templates/passport-deployment.yaml index 7e1a083..e671c96 100644 --- a/charts/passport/templates/passport-deployment.yaml +++ b/charts/passport/templates/passport-deployment.yaml @@ -22,6 +22,9 @@ spec: labels: app: drycc-passport spec: + {{- if .Values.global.common }} + {{- include "common.affinity" (dict "key" "app" "values" (list "drycc-passport")) | indent 6 }} + {{- end }} serviceAccount: drycc-passport initContainers: - name: drycc-passport-init