mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
30 lines
870 B
YAML
30 lines
870 B
YAML
{{- if and (or .Values.hubble.enabled .Values.hubble.ui.standalone.enabled) .Values.hubble.ui.enabled .Values.hubble.ui.ingress.enabled }}
|
|
apiVersion: {{ template "ingress.apiVersion" . }}
|
|
kind: Ingress
|
|
metadata:
|
|
name: hubble-ui
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
k8s-app: hubble-ui
|
|
{{- with .Values.hubble.ui.ingress.annotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
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:
|
|
- path: /
|
|
{{- include "ingress.paths" $ | nindent 12 }}
|
|
{{- end }}
|
|
{{- end }}
|