-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhelmbroker-ingress.yaml
More file actions
36 lines (36 loc) · 1011 Bytes
/
helmbroker-ingress.yaml
File metadata and controls
36 lines (36 loc) · 1011 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: "helmbroker-api-server"
labels:
app: "helmbroker"
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
annotations:
kubernetes.io/tls-acme: "true"
{{- if not (eq .Values.ingress_class "") }}
kubernetes.io/ingress.class: "{{ .Values.ingress_class }}"
{{- end }}
spec:
rules:
- host: drycc.{{ .Values.platform_domain }}
http:
paths:
- pathType: Prefix
{{- if eq .Values.ingress_class "gce" "alb" }}
path: /*
{{- else }}{{/* Has annotations but ingress class is not "gce" nor "alb" */}}
path: /
{{- end }}
backend:
service:
name: drycc-helmbroker
port:
number: 80
{{- if .Values.cert_manager_enabled }}
tls:
- secretName: drycc-helmbroker-certificate-auto
hosts:
- drycc.{{ .Values.platform_domain }}
{{- end }}