2022-08-12 04:20:19 -04:00
|
|
|
{{- if and (or .Values.hubble.enabled .Values.hubble.ui.standalone.enabled) .Values.hubble.ui.enabled }}
|
|
|
|
kind: Service
|
|
|
|
apiVersion: v1
|
|
|
|
metadata:
|
|
|
|
name: hubble-ui
|
|
|
|
namespace: {{ .Release.Namespace }}
|
2023-10-16 13:14:53 -04:00
|
|
|
{{- if or .Values.hubble.ui.service.annotations .Values.hubble.ui.annotations }}
|
|
|
|
annotations:
|
|
|
|
{{- with .Values.hubble.ui.annotations }}
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- with .Values.hubble.ui.service.annotations }}
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
2022-08-12 04:20:19 -04:00
|
|
|
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
|
2022-08-12 04:20:19 -04:00
|
|
|
spec:
|
|
|
|
type: {{ .Values.hubble.ui.service.type | quote }}
|
|
|
|
selector:
|
|
|
|
k8s-app: hubble-ui
|
|
|
|
ports:
|
|
|
|
- name: http
|
|
|
|
port: 80
|
|
|
|
targetPort: 8081
|
|
|
|
{{- if and (eq "NodePort" .Values.hubble.ui.service.type) .Values.hubble.ui.service.nodePort }}
|
|
|
|
nodePort: {{ .Values.hubble.ui.service.nodePort }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|