constellation/internal/helm/charts/cilium/templates/hubble-relay/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

31 lines
951 B
YAML

{{- if and .Values.hubble.enabled .Values.hubble.relay.enabled }}
kind: Service
apiVersion: v1
metadata:
name: hubble-relay
namespace: {{ .Release.Namespace }}
{{- with .Values.hubble.relay.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
k8s-app: hubble-relay
app.kubernetes.io/name: hubble-relay
app.kubernetes.io/part-of: cilium
spec:
type: {{ .Values.hubble.relay.service.type | quote }}
selector:
k8s-app: hubble-relay
ports:
- protocol: TCP
{{- if .Values.hubble.relay.servicePort }}
port: {{ .Values.hubble.relay.servicePort }}
{{- else }}
port: {{ .Values.hubble.relay.tls.server.enabled | ternary 443 80 }}
{{- end }}
targetPort: {{ .Values.hubble.relay.listenPort }}
{{- if and (eq "NodePort" .Values.hubble.relay.service.type) .Values.hubble.relay.service.nodePort }}
nodePort: {{ .Values.hubble.relay.service.nodePort }}
{{- end }}
{{- end }}