35 lines
962 B
Smarty
35 lines
962 B
Smarty
{{/* vim: set filetype=mustache: */}}
|
|
{{/*
|
|
Create chart name and version as used by the chart label.
|
|
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
|
*/}}
|
|
{{- define "frontend-app.chart" -}}
|
|
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 }}
|
|
{{- end }}
|
|
|
|
{{/*
|
|
Create the node affinity to determine the deployment of environment
|
|
*/}}
|
|
{{- define "frontend-app.affinity" -}}
|
|
{{- with .Values.global.domain -}}
|
|
nodeAffinity:
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
nodeSelectorTerms:
|
|
- matchExpressions:
|
|
- key: uavcloud.affinity
|
|
operator: In
|
|
values:
|
|
- {{ .k8sNodeEnv }}
|
|
{{- end }}
|
|
{{- end }}
|
|
|
|
{{/*
|
|
Create the tls configuration for https to enable trafik-ingress
|
|
*/}}
|
|
{{/*{{- define "frontend-app.trafik.tls" -}}*/}}
|
|
{{/*entryPoints:*/}}
|
|
{{/* - websecure*/}}
|
|
{{/*tls:*/}}
|
|
{{/* certResolver: default*/}}
|
|
{{/*{{- end }}*/}}
|