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.

29 lines
759 B

{{- if .Values.ingressRoute.enabled -}}
{{- $fullName := include "ccagc.fullname" . -}}
{{- $svcPort := .Values.service.port -}}
{{- $Host := .Values.ingressRoute.host -}}
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: https-{{ $fullName }}
labels:
{{- include "ccagc.labels" . | nindent 4 }}
{{- with .Values.ingressRoute.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
entryPoints:
- websecure
routes:
- match: Host(`{{ $Host }}`) && PathPrefix(`/agc/`)
kind: Rule
services:
- name: {{ $fullName }}
port: {{ $svcPort }}
{{- if .Values.ingressRoute.tls.enabled }}
tls:
secretName: {{ printf "%s-%s" .Release.Name "tls-le" }}
{{- end }}
{{- end }}