mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-15 10:54:29 -05:00
25 lines
765 B
YAML
25 lines
765 B
YAML
|
{{- if and .Values.hubble.enabled .Values.hubble.relay.enabled }}
|
||
|
kind: Service
|
||
|
apiVersion: v1
|
||
|
metadata:
|
||
|
name: hubble-relay
|
||
|
namespace: {{ .Release.Namespace }}
|
||
|
labels:
|
||
|
k8s-app: hubble-relay
|
||
|
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 }}
|