constellation/internal/helm/charts/cilium/templates/hubble-ui/service.yaml
Moritz Sanft 968cdc1a38
cli: move cli/internal libraries (#2623)
* cli: move internal packages

Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com>

* cli: fix buildfiles

Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com>

* bazel: fix exclude dir

Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com>

* cli: move back libraries that will not be used by TF provider

Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com>

---------

Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com>
2023-11-22 14:52:56 +01:00

32 lines
965 B
YAML

{{- 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 }}
{{- 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 }}
labels:
k8s-app: hubble-ui
app.kubernetes.io/name: hubble-ui
app.kubernetes.io/part-of: cilium
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 }}