Skip to content
Snippets Groups Projects
Commit 56efd1ac authored by Andri Joos's avatar Andri Joos :blush:
Browse files

add traefik serverstransport template

parent 80806d3c
No related branches found
No related tags found
No related merge requests found
# https://github.com/traefik/traefik/blob/master/docs/content/routing/providers/kubernetes-crd.md#kind-serverstransport
{{- define "common.traefik.serverstransport" }}
apiVersion: {{ .Values.apiVersion | default "traefik.io/v1alpha1" }}
kind: ServersTransport
metadata:
name: {{ .Values.name | default "servers-transport" }}
spec:
serverName: {{ .Values.serverName | default "" | quote }}
insecureSkipVerify: {{ .Values.insecureSkipVerify | default false }}
{{- with .Values.rootCAsSecrets }}
rootCAsSecrets:
{{- toYaml . | nindent 4}}
{{- end }}
{{- with .Values.certificatesSecrets }}
certificatesSecrets:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.maxIdleConnsPerHost }}
maxIdleConnsPerHost: {{ . | int }}
{{- end }}
forwardingTimeouts:
{{- with .Values.dialTimeout }}
dialTimeout: {{ . }}
{{- end }}
{{- with .Values.responseHeaderTimeout }}
responseHeaderTimeout: {{ . }}
{{- end }}
{{- with .Values.idleConnTimeout }}
idleConnTimeout: {{ . }}
{{- end }}
{{- with .Values.peerCertURI }}
peerCertURI: {{ . | quote }}
{{- end }}
disableHTTP2: {{ .Values.disableHTTP2 | default false }}
{{- with .Values.spiffe }}
spiffe:
{{ toYaml . | nindent 4 }}
{{- end }}
{{- end }}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment