Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{{- if and (or .Values.hubble.enabled .Values.hubble.relay.standalone.enabled) .Values.hubble.relay.enabled .Values.hubble.relay.grpcRoute.enabled }}
{{- $port := .Values.hubble.relay.grpcRoute.port | default .Values.hubble.relay.servicePort | default (.Values.hubble.relay.tls.server.enabled | ternary 443 80) -}}
apiVersion: gateway.networking.k8s.io/v1
kind: GRPCRoute
metadata:
name: hubble-relay
namespace: {{ .Values.namespace }}
labels:
k8s-app: hubble-relay
app.kubernetes.io/name: hubble-relay
app.kubernetes.io/part-of: cilium
{{- with .Values.hubble.relay.grpcRoute.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- if or .Values.hubble.relay.grpcRoute.annotations .Values.hubble.relay.annotations }}
annotations:
{{- with .Values.hubble.relay.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.hubble.relay.grpcRoute.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
spec:
{{- if .Values.hubble.relay.grpcRoute.parentRefs }}
parentRefs:
{{- toYaml .Values.hubble.relay.grpcRoute.parentRefs | nindent 4 }}
{{- end }}
{{- if .Values.hubble.relay.grpcRoute.hostnames }}
hostnames:
{{- range .Values.hubble.relay.grpcRoute.hostnames }}
- {{ tpl . $ | quote }}
{{- end }}
{{- end }}
rules:
- backendRefs:
- name: hubble-relay
port: {{ $port }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ spec:
k8s-app: hubble-relay
ports:
- protocol: TCP
name: grpc
{{- if .Values.hubble.relay.servicePort }}
port: {{ .Values.hubble.relay.servicePort }}
{{- else }}
Expand All @@ -30,4 +31,7 @@ spec:
{{- if and (eq "NodePort" .Values.hubble.relay.service.type) .Values.hubble.relay.service.nodePort }}
nodePort: {{ .Values.hubble.relay.service.nodePort }}
{{- end }}
{{- with .Values.hubble.relay.service.appProtocol }}
appProtocol: {{ . }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
{{- if .Values.hubble.ui.httpRoute.hostnames }}
hostnames:
{{- range .Values.hubble.ui.httpRoute.hostnames }}
- {{ . }}
- {{ tpl (. | toString) $ }}
{{- end }}
{{- end }}
rules:
Expand Down
18 changes: 18 additions & 0 deletions deploy/hubble/manifests/controller/helm/retina/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,24 @@ hubble:
# by being built into the Service API and offering more predictable routing behavior.
# See https://kubernetes.io/docs/concepts/services-networking/service/#traffic-distribution
trafficDistribution: ""
appProtocol: "grpc"

# -- hubble-relay GRPCRoute configuration (Gateway API).
# Requires Kubernetes 1.26+ or Gateway API CRDs to be pre-installed.
grpcRoute:
enabled: false
annotations: {}
labels: {}
# -- Parent Gateways that this route is attached to.
parentRefs:
- name: example-gateway
namespace: default
sectionName: example-listener
# -- Hostnames for this GRPCRoute.
hostnames:
- chart-example.local
# -- Backend port number. Defaults to the service port (80 for plain, 443 for TLS).
port: ~

# -- Host to listen to. Specify an empty string to bind to all the interfaces.
listenHost: ""
Expand Down