diff --git a/deploy/templates/static-deployment.yaml b/deploy/templates/static-deployment.yaml index 6271539..5911a9c 100644 --- a/deploy/templates/static-deployment.yaml +++ b/deploy/templates/static-deployment.yaml @@ -2,7 +2,7 @@ {{- $fullName := include "gitdata.fullname" . -}} {{- $ns := include "gitdata.namespace" . -}} {{- $svc := .Values.static -}} -{{- $port := printf "0.0.0.0:%d" $svc.service.port | quote -}} +{{- $port := print "0.0.0.0:" ($svc.service.port | toString) -}} --- apiVersion: apps/v1 @@ -38,19 +38,21 @@ spec: - name: STATIC_ROOT value: /data - name: STATIC_BIND - value: {{ $port }} + value: {{ $port | quote }} - name: STATIC_CORS - value: {{ $svc.cors | default "true" | quote }} + value: "true" {{- if $svc.logLevel }} - name: STATIC_LOG_LEVEL - value: {{ $svc.logLevel }} + value: {{ $svc.logLevel | quote }} {{- end }} {{- range $svc.env }} - name: {{ .name }} value: {{ .value | quote }} {{- end }} + {{- if $svc.resources }} resources: {{- toYaml $svc.resources | nindent 10 }} + {{- end }} {{- if $svc.livenessProbe }} livenessProbe: httpGet: