Skip to content

Commit

Permalink
Set admin grpc port to 80 in ingress if using TLS between load balanc…
Browse files Browse the repository at this point in the history
…er and backend

Signed-off-by: Fabio Grätz <[email protected]>
  • Loading branch information
Fabio Grätz committed Aug 15, 2023
1 parent b46fbd2 commit 64068eb
Showing 1 changed file with 28 additions and 24 deletions.
52 changes: 28 additions & 24 deletions charts/flyte-core/templates/common/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{{- define "grpcRoutes" -}}
{{- $grpcPort := 81 -}}
{{- if eq .Values.configmap.adminServer.server.security.secure true -}}
{{- $grpcPort = 80 -}}
{{- end }}
# NOTE: Port 81 in flyteadmin is the GRPC server port for FlyteAdmin.
- path: /flyteidl.service.SignalService
pathType: ImplementationSpecific
Expand All @@ -7,10 +11,10 @@
service:
name: flyteadmin
port:
number: 81
number: {{ $grpcPort }}
{{- else }}
serviceName: flyteadmin
servicePort: 81
servicePort: {{ $grpcPort }}
{{- end }}
- path: /flyteidl.service.SignalService/*
pathType: ImplementationSpecific
Expand All @@ -19,10 +23,10 @@
service:
name: flyteadmin
port:
number: 81
number: {{ $grpcPort }}
{{- else }}
serviceName: flyteadmin
servicePort: 81
servicePort: {{ $grpcPort }}
{{- end }}
- path: /flyteidl.service.AdminService
pathType: ImplementationSpecific
Expand All @@ -31,10 +35,10 @@
service:
name: flyteadmin
port:
number: 81
number: {{ $grpcPort }}
{{- else }}
serviceName: flyteadmin
servicePort: 81
servicePort: {{ $grpcPort }}
{{- end }}
- path: /flyteidl.service.AdminService/*
pathType: ImplementationSpecific
Expand All @@ -43,10 +47,10 @@
service:
name: flyteadmin
port:
number: 81
number: {{ $grpcPort }}
{{- else }}
serviceName: flyteadmin
servicePort: 81
servicePort: {{ $grpcPort }}
{{- end }}
- path: /flyteidl.service.DataProxyService
pathType: ImplementationSpecific
Expand All @@ -55,10 +59,10 @@
service:
name: flyteadmin
port:
number: 81
number: {{ $grpcPort }}
{{- else }}
serviceName: flyteadmin
servicePort: 81
servicePort: {{ $grpcPort }}
{{- end }}
- path: /flyteidl.service.DataProxyService/*
pathType: ImplementationSpecific
Expand All @@ -67,10 +71,10 @@
service:
name: flyteadmin
port:
number: 81
number: {{ $grpcPort }}
{{- else }}
serviceName: flyteadmin
servicePort: 81
servicePort: {{ $grpcPort }}
{{- end }}
- path: /flyteidl.service.AuthMetadataService
pathType: ImplementationSpecific
Expand All @@ -79,10 +83,10 @@
service:
name: flyteadmin
port:
number: 81
number: {{ $grpcPort }}
{{- else }}
serviceName: flyteadmin
servicePort: 81
servicePort: {{ $grpcPort }}
{{- end }}
- path: /flyteidl.service.AuthMetadataService/*
pathType: ImplementationSpecific
Expand All @@ -91,10 +95,10 @@
service:
name: flyteadmin
port:
number: 81
number: {{ $grpcPort }}
{{- else }}
serviceName: flyteadmin
servicePort: 81
servicePort: {{ $grpcPort }}
{{- end }}
- path: /flyteidl.service.IdentityService
pathType: ImplementationSpecific
Expand All @@ -103,10 +107,10 @@
service:
name: flyteadmin
port:
number: 81
number: {{ $grpcPort }}
{{- else }}
serviceName: flyteadmin
servicePort: 81
servicePort: {{ $grpcPort }}
{{- end }}
- path: /flyteidl.service.IdentityService/*
pathType: ImplementationSpecific
Expand All @@ -115,10 +119,10 @@
service:
name: flyteadmin
port:
number: 81
number: {{ $grpcPort }}
{{- else }}
serviceName: flyteadmin
servicePort: 81
servicePort: {{ $grpcPort }}
{{- end }}
- path: /grpc.health.v1.Health
pathType: ImplementationSpecific
Expand All @@ -127,10 +131,10 @@
service:
name: flyteadmin
port:
number: 81
number: {{ $grpcPort }}
{{- else }}
serviceName: flyteadmin
servicePort: 81
servicePort: {{ $grpcPort }}
{{- end }}
- path: /grpc.health.v1.Health/*
pathType: ImplementationSpecific
Expand All @@ -139,10 +143,10 @@
service:
name: flyteadmin
port:
number: 81
number: {{ $grpcPort }}
{{- else }}
serviceName: flyteadmin
servicePort: 81
servicePort: {{ $grpcPort }}
{{- end }}
{{- end }}
{{- if .Values.common.ingress.enabled }}
Expand Down

0 comments on commit 64068eb

Please sign in to comment.