-
Notifications
You must be signed in to change notification settings - Fork 669
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Haytham Abuelfutuh <[email protected]>
- Loading branch information
Showing
6 changed files
with
403 additions
and
49 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
5 changes: 5 additions & 0 deletions
5
kustomize/overlays/eks/flyte/dependencies/alb_ingress/README.md
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,5 @@ | ||
# :construction: Instructions to deploy ALB Ingress controller | ||
|
||
Follow instructions here to install ALB Ingress Controller: https://docs.aws.amazon.com/eks/latest/userguide/alb-ingress.html | ||
|
||
Replace `alb.ingress.kubernetes.io/certificate-arn: arn:aws:acm:us-east-2:590375264460:certificate/e2f04275-2dff-4118-a493-ed3ec8f41605` in ingress.yaml and ingress_grpc.yaml with your own SSL cert (that you will create by following ALB Instructions above) |
140 changes: 140 additions & 0 deletions
140
kustomize/overlays/eks/flyte/dependencies/alb_ingress/ingress.yaml
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,140 @@ | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: flytesystem | ||
namespace: flyte | ||
annotations: | ||
# TODO ALB can only be used for REST non grpc endpoints | ||
kubernetes.io/ingress.class: alb | ||
alb.ingress.kubernetes.io/tags: service_instance=production | ||
alb.ingress.kubernetes.io/scheme: internet-facing | ||
alb.ingress.kubernetes.io/certificate-arn: arn:aws:acm:us-east-2:590375264460:certificate/e2f04275-2dff-4118-a493-ed3ec8f41605 | ||
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80}, {"HTTPS":443}]' | ||
alb.ingress.kubernetes.io/actions.ssl-redirect: '{"Type": "redirect", "RedirectConfig": { "Protocol": "HTTPS", "Port": "443", "StatusCode": "HTTP_301"}}' | ||
alb.ingress.kubernetes.io/group.name: flytesystem | ||
labels: | ||
app: flyteadmin | ||
spec: | ||
rules: | ||
- http: | ||
paths: | ||
- path: /* | ||
pathType: ImplementationSpecific | ||
backend: | ||
service: | ||
name: ssl-redirect | ||
port: | ||
name: use-annotation | ||
- path: /console | ||
pathType: ImplementationSpecific | ||
backend: | ||
service: | ||
name: flyteconsole | ||
port: | ||
number: 80 | ||
- path: /console/* | ||
pathType: ImplementationSpecific | ||
backend: | ||
service: | ||
name: flyteconsole | ||
port: | ||
number: 80 | ||
- path: /api/* | ||
pathType: ImplementationSpecific | ||
backend: | ||
service: | ||
name: flyteadmin | ||
port: | ||
number: 80 | ||
- path: /healthcheck | ||
pathType: ImplementationSpecific | ||
backend: | ||
service: | ||
name: flyteadmin | ||
port: | ||
number: 80 | ||
- path: /v1/* | ||
pathType: ImplementationSpecific | ||
backend: | ||
service: | ||
name: flyteadmin | ||
port: | ||
number: 80 | ||
# Port 87 in FlyteAdmin maps to the redoc container. | ||
- path: /openapi/* | ||
pathType: ImplementationSpecific | ||
backend: | ||
service: | ||
name: flyteadmin | ||
port: | ||
number: 80 | ||
- path: /.well-known/* | ||
pathType: ImplementationSpecific | ||
backend: | ||
service: | ||
name: flyteadmin | ||
port: | ||
number: 80 | ||
- path: /login | ||
pathType: ImplementationSpecific | ||
backend: | ||
service: | ||
name: flyteadmin | ||
port: | ||
number: 80 | ||
- path: /login/* | ||
pathType: ImplementationSpecific | ||
backend: | ||
service: | ||
name: flyteadmin | ||
port: | ||
number: 80 | ||
- path: /logout | ||
pathType: ImplementationSpecific | ||
backend: | ||
service: | ||
name: flyteadmin | ||
port: | ||
number: 80 | ||
- path: /logout/* | ||
pathType: ImplementationSpecific | ||
backend: | ||
service: | ||
name: flyteadmin | ||
port: | ||
number: 80 | ||
- path: /callback | ||
pathType: ImplementationSpecific | ||
backend: | ||
service: | ||
name: flyteadmin | ||
port: | ||
number: 80 | ||
- path: /callback/* | ||
pathType: ImplementationSpecific | ||
backend: | ||
service: | ||
name: flyteadmin | ||
port: | ||
number: 80 | ||
- path: /me | ||
pathType: ImplementationSpecific | ||
backend: | ||
service: | ||
name: flyteadmin | ||
port: | ||
number: 80 | ||
- path: /config | ||
pathType: ImplementationSpecific | ||
backend: | ||
service: | ||
name: flyteadmin | ||
port: | ||
number: 80 | ||
- path: /config/* | ||
pathType: ImplementationSpecific | ||
backend: | ||
service: | ||
name: flyteadmin | ||
port: | ||
number: 80 |
36 changes: 36 additions & 0 deletions
36
kustomize/overlays/eks/flyte/dependencies/alb_ingress/ingress_grpc.yaml
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,36 @@ | ||
--- | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
annotations: | ||
alb.ingress.kubernetes.io/actions.ssl-redirect: '{"Type": "redirect", "RedirectConfig": { "Protocol": "HTTPS", "Port": "443", "StatusCode": "HTTP_301"}}' | ||
alb.ingress.kubernetes.io/backend-protocol-version: GRPC | ||
alb.ingress.kubernetes.io/certificate-arn: arn:aws:acm:us-east-2:590375264460:certificate/e2f04275-2dff-4118-a493-ed3ec8f41605 | ||
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80}, {"HTTPS":443}]' | ||
alb.ingress.kubernetes.io/scheme: internet-facing | ||
alb.ingress.kubernetes.io/tags: service_instance=production | ||
kubernetes.io/ingress.class: alb | ||
nginx.ingress.kubernetes.io/ssl-redirect: "false" | ||
alb.ingress.kubernetes.io/group.name: flytesystem | ||
labels: | ||
app: flyteadmin | ||
name: flytesystem-grpc | ||
namespace: flyte | ||
spec: | ||
rules: | ||
- http: | ||
paths: | ||
- backend: | ||
service: | ||
name: ssl-redirect | ||
port: | ||
name: ssl-redirect | ||
path: /* | ||
pathType: ImplementationSpecific | ||
- backend: | ||
service: | ||
name: flyteadmin | ||
port: | ||
number: 81 | ||
path: /flyteidl.service.AdminService/* | ||
pathType: ImplementationSpecific |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
apiVersion: extensions/v1beta1 | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: flytesystem | ||
|
Oops, something went wrong.