2022-08-12 04:20:19 -04:00
|
|
|
{{- if and (or .Values.hubble.enabled .Values.hubble.ui.standalone.enabled) .Values.hubble.ui.enabled .Values.hubble.ui.ingress.enabled }}
|
2023-10-16 13:14:53 -04:00
|
|
|
{{- $baseUrl := .Values.hubble.ui.baseUrl -}}
|
2022-08-12 04:20:19 -04:00
|
|
|
apiVersion: {{ template "ingress.apiVersion" . }}
|
|
|
|
kind: Ingress
|
|
|
|
metadata:
|
|
|
|
name: hubble-ui
|
|
|
|
namespace: {{ .Release.Namespace }}
|
|
|
|
labels:
|
|
|
|
k8s-app: hubble-ui
|
2023-10-16 13:14:53 -04:00
|
|
|
app.kubernetes.io/name: hubble-ui
|
|
|
|
app.kubernetes.io/part-of: cilium
|
|
|
|
{{- with .Values.hubble.ui.ingress.labels }}
|
2022-08-12 04:20:19 -04:00
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
2023-10-16 13:14:53 -04:00
|
|
|
{{- if or .Values.hubble.ui.ingress.annotations .Values.hubble.ui.annotations }}
|
|
|
|
annotations:
|
|
|
|
{{- with .Values.hubble.ui.annotations }}
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- with .Values.hubble.ui.ingress.annotations }}
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
2022-08-12 04:20:19 -04:00
|
|
|
spec:
|
|
|
|
{{- if .Values.hubble.ui.ingress.className }}
|
|
|
|
ingressClassName: {{ .Values.hubble.ui.ingress.className }}
|
|
|
|
{{- end }}
|
|
|
|
{{- if .Values.hubble.ui.ingress.tls }}
|
|
|
|
tls:
|
|
|
|
{{- toYaml .Values.hubble.ui.ingress.tls | nindent 4 }}
|
|
|
|
{{- end }}
|
|
|
|
rules:
|
|
|
|
{{- range .Values.hubble.ui.ingress.hosts }}
|
|
|
|
- host: {{ . }}
|
|
|
|
http:
|
|
|
|
paths:
|
2023-10-16 13:14:53 -04:00
|
|
|
- path: {{ $baseUrl | quote }}
|
2022-08-12 04:20:19 -04:00
|
|
|
{{- include "ingress.paths" $ | nindent 12 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|