fix: simplify static deployment template, fix YAML parse error
This commit is contained in:
parent
9112cb2dff
commit
53c63dad19
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user