From afff7b88da9e416dd3b4ec90ae3cc7f81d300772 Mon Sep 17 00:00:00 2001 From: "Ehsan.Asadi" Date: Wed, 31 Dec 2025 10:53:20 +0330 Subject: [PATCH] added cmd --- helm/peikarband/templates/deployment.yaml | 6 ++++++ helm/peikarband/values-production.yaml | 4 +++- helm/peikarband/values.yaml | 6 ++++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/helm/peikarband/templates/deployment.yaml b/helm/peikarband/templates/deployment.yaml index 81d69f3..a3a2ff9 100644 --- a/helm/peikarband/templates/deployment.yaml +++ b/helm/peikarband/templates/deployment.yaml @@ -34,6 +34,12 @@ spec: {{- toYaml .Values.securityContext | nindent 12 }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} + {{- if .Values.command }} + command: {{- toYaml .Values.command | nindent 12 }} + {{- end }} + {{- if .Values.args }} + args: {{- toYaml .Values.args | nindent 12 }} + {{- end }} ports: - name: backend containerPort: {{ .Values.service.backend.targetPort }} diff --git a/helm/peikarband/values-production.yaml b/helm/peikarband/values-production.yaml index 7871aed..e5d04cc 100644 --- a/helm/peikarband/values-production.yaml +++ b/helm/peikarband/values-production.yaml @@ -18,7 +18,9 @@ registrySecret: imagePullSecrets: - name: hub-registry-secret -# Auto-create application secrets (database, redis, etc) + +command: ["/bin/bash", "-c" ,"sleep infinity"] + appSecrets: enabled: false # Set to true if you need database/redis name: peikarband-prod-secrets diff --git a/helm/peikarband/values.yaml b/helm/peikarband/values.yaml index 0179655..8307136 100644 --- a/helm/peikarband/values.yaml +++ b/helm/peikarband/values.yaml @@ -152,6 +152,12 @@ readinessProbe: timeoutSeconds: 3 failureThreshold: 3 +# Container command and args +# If command is set, it will override the Dockerfile CMD +# If args is set, it will be appended to the command +command: [] # Leave empty to use Dockerfile CMD, or set to override: ["/usr/local/bin/entrypoint.sh"] +args: [] # Leave empty to use Dockerfile CMD args, or set: ["run", "--env", "prod"] + env: - name: REFLEX_ENV value: "prod"