Skip to content

Commit

Permalink
Access GRPC services using projectcontour (flyteorg#686)
Browse files Browse the repository at this point in the history
  • Loading branch information
kumare3 authored Jan 31, 2021
1 parent c9b9fad commit 46864a5
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 5 deletions.
2 changes: 1 addition & 1 deletion deployment/eks/flyte_generated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8365,8 +8365,8 @@ apiVersion: v1
kind: Service
metadata:
annotations:
contour.heptio.com/upstream-protocol.h2c: grpc
external-dns.alpha.kubernetes.io/hostname: flyteadmin.subdomain.mydomain.com
projectcontour.io/upstream-protocol.h2c: grpc
service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout: "600"
service.beta.kubernetes.io/aws-load-balancer-extra-security-groups: sg-...,sg-...,sg-...
name: flyteadmin
Expand Down
2 changes: 1 addition & 1 deletion deployment/gcp/flyte_generated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8382,7 +8382,7 @@ kind: Service
metadata:
annotations:
cloud.google.com/load-balancer-type: Internal
contour.heptio.com/upstream-protocol.h2c: grpc
projectcontour.io/upstream-protocol.h2c: grpc
name: flyteadmin
namespace: flyte
spec:
Expand Down
3 changes: 2 additions & 1 deletion deployment/sandbox/flyte_generated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9863,6 +9863,7 @@ spec:
externalTrafficPolicy: Local
ports:
- name: http
nodePort: 30081
port: 80
protocol: TCP
- name: https
Expand All @@ -9876,7 +9877,7 @@ apiVersion: v1
kind: Service
metadata:
annotations:
contour.heptio.com/upstream-protocol.h2c: grpc
projectcontour.io/upstream-protocol.h2c: grpc
name: flyteadmin
namespace: flyte
spec:
Expand Down
2 changes: 1 addition & 1 deletion deployment/test/flyte_generated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ apiVersion: v1
kind: Service
metadata:
annotations:
contour.heptio.com/upstream-protocol.h2c: grpc
projectcontour.io/upstream-protocol.h2c: grpc
name: flyteadmin
namespace: flyte
spec:
Expand Down
3 changes: 2 additions & 1 deletion kustomize/base/admindeployment/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ metadata:
# with the name 'grpc' under spec/ports.
# For more information, refer to
# https://github.com/heptio/contour/blob/master/docs/annotations.md#contour-specific-service-annotations
contour.heptio.com/upstream-protocol.h2c: "grpc"
# # Following this issue - the annotation was updated https://github.com/projectcontour/contour/issues/2092
projectcontour.io/upstream-protocol.h2c: "grpc"
spec:
selector:
app: flyteadmin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1631,6 +1631,7 @@ spec:
- port: 80
name: http
protocol: TCP
nodePort: 30081
- port: 443
name: https
protocol: TCP
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Service
apiVersion: v1
kind: Service
metadata:
name: contour
labels:
app: contour
spec:
# use NodePort to make sure the service is accessible
type: NodePort
selector:
app: contour
ports:
- protocol: TCP
port: 80
nodePort: 30081

0 comments on commit 46864a5

Please sign in to comment.