Interlegis Public Rancher Charts for Kubernetes
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
{{- if .Values.ingress.enabled -}}
|
|
|
|
{{- $fullName := include "sapl.fullname" . -}}
|
|
|
|
{{- $hostName := .Values.sapl.hostname -}}
|
|
|
|
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
|
|
|
|
apiVersion: networking.k8s.io/v1beta1
|
|
|
|
{{- else -}}
|
|
|
|
apiVersion: extensions/v1beta1
|
|
|
|
{{- end }}
|
|
|
|
kind: Ingress
|
|
|
|
metadata:
|
|
|
|
name: {{ $fullName }}
|
|
|
|
labels:
|
|
|
|
{{- include "sapl.labels" . | nindent 4 }}
|
|
|
|
annotations:
|
|
|
|
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
|
|
|
{{- with .Values.ingress.annotations }}
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
|
|
|
spec:
|
|
|
|
tls:
|
|
|
|
- hosts:
|
|
|
|
- "{{ $hostName }}"
|
|
|
|
secretName: {{ $hostName | replace "." "-" }}-tls
|
|
|
|
rules:
|
|
|
|
- host: "{{ $hostName }}"
|
|
|
|
http:
|
|
|
|
paths:
|
|
|
|
- path: /
|
|
|
|
backend:
|
|
|
|
serviceName: {{ $fullName }}
|
|
|
|
servicePort: http
|
|
|
|
{{- end }}
|