From 078bd60f2002b39de99a6767c469f8b12fefb355 Mon Sep 17 00:00:00 2001 From: jiangrui Date: Mon, 4 Mar 2024 10:01:13 +0800 Subject: [PATCH] Update deployment.yaml --- charts/templates/deployment.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/charts/templates/deployment.yaml b/charts/templates/deployment.yaml index a55553b..d5e3884 100644 --- a/charts/templates/deployment.yaml +++ b/charts/templates/deployment.yaml @@ -54,7 +54,10 @@ spec: image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: IfNotPresent args: - - python manage.py makemigrations; python manage.py migrate + - python manage.py makemigrations; python manage.py migrate; + command: + - "/bin/sh" + - "-c" {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }}