Important notes: - Uses 80 and 443 for primary ingress, but warns about such when installing - Currently entrypoints are hardcoded, PR's are welcome to change this. (thanks to co-author for fixing the icon url) Co-authored-by: Stavros Kois <stavros-k@users.noreply.github.com> Signed-off-by: Kjeld Schouten-Lebbing <kjeld@schouten-lebbing.nl>
22 lines
957 B
YAML
22 lines
957 B
YAML
{{- if and .Values.ingressClass.enabled (semverCompare ">=2.3.0" (default .Chart.AppVersion .Values.image.tag)) -}}
|
|
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1/IngressClass" }}
|
|
apiVersion: networking.k8s.io/v1
|
|
{{- else if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1/IngressClass" }}
|
|
apiVersion: networking.k8s.io/v1beta1
|
|
{{- else }}
|
|
{{- fail "\n\n ERROR: You must have atleast networking.k8s.io/v1beta1 to use ingressClass" }}
|
|
{{- end }}
|
|
kind: IngressClass
|
|
metadata:
|
|
annotations:
|
|
ingressclass.kubernetes.io/is-default-class: {{ .Values.ingressClass.isDefaultClass | quote }}
|
|
labels:
|
|
app.kubernetes.io/name: {{ template "traefik.name" . }}
|
|
helm.sh/chart: {{ template "traefik.chart" . }}
|
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
name: {{ template "traefik.fullname" . }}
|
|
spec:
|
|
controller: traefik.io/ingress-controller
|
|
{{- end }}
|