diff --git a/templates/deployment.yaml b/templates/deployment.yaml index 3123106..cfba23b 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -35,6 +35,14 @@ spec: {{- toYaml .Values.securityContext | nindent 12 }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} + {{- if .Values.entrypoint.command }} + command: + {{- toYaml .Values.entrypoint.command | nindent 10 }} + {{- end }} + {{- if .Values.entrypoint.args }} + args: + {{- toYaml .Values.entrypoint.args | nindent 10 }} + {{- end }} env: {{- if .Values.service.port }} - name: {{ cat $envPrefix "PORT_" $portName | nospace |upper}} diff --git a/values.yaml b/values.yaml index 95e3c75..a08a807 100644 --- a/values.yaml +++ b/values.yaml @@ -10,6 +10,10 @@ image: pullPolicy: IfNotPresent # Overrides the image tag whose default is the chart appVersion. # tag: "v1" + +entrypoint: {} + # command: ["test2"] + # args: ["test"] imagePullSecrets: []