-
Notifications
You must be signed in to change notification settings - Fork 659
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create separate grpc service for flyteadmin
This allows setting annotations that are required for some ingress controllers for grpc communication only on the parts that actually use grpc. Without this separation either the console or the grpc endpoints did not work properly with some ingress controllers, e.g. traefik. Signed-off-by: Julian Einhaus <[email protected]>
- Loading branch information
Showing
7 changed files
with
59 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{{- if .Values.flyteadmin.enabled }} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ template "flyteadmin.name" . }}-grpc | ||
namespace: {{ template "flyte.namespace" . }} | ||
labels: {{ include "flyteadmin.labels" . | nindent 4 }} | ||
annotations: | ||
{{- if .Values.flyteadmin.service.annotations }} | ||
{{ tpl ( .Values.flyteadmin.service.annotations | toYaml ) . | nindent 4 }} | ||
{{- end }} | ||
{{- if .Values.flyteadmin.service.grpcAnnotations }} | ||
{{ tpl ( .Values.flyteadmin.service.grpcAnnotations | toYaml ) . | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
{{- with .Values.flyteadmin.service.type}} | ||
type: {{ . }} | ||
{{- end }} | ||
{{- with .Values.flyteadmin.service.loadBalancerSourceRanges }} | ||
loadBalancerSourceRanges: | ||
{{ . }} | ||
{{- end }} | ||
ports: | ||
- name: grpc | ||
port: 81 | ||
protocol: TCP | ||
targetPort: 8089 | ||
selector: {{ include "flyteadmin.selectorLabels" . | nindent 4 }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters