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

add traefik service template

parent eb565526
No related branches found
No related tags found
No related merge requests found
Pipeline #7745 passed with stages
in 37 seconds
# https://doc.traefik.io/traefik/routing/services/#services
{{- define "common.traefik.service" }}
apiVersion: {{ .Values.apiVersion | default "traefik.io/v1alpha1" }}
kind: TraefikService
metadata:
name: {{ .Values.name | default "service" }}
{{- with .Values.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
{{- include "common.variables.labels" . | nindent 4 }}
spec:
{{- with .Values.loadBalancer }}
loadBalancer:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.weighted }}
weighted:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.mirroring }}
mirroring:
{{- 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