From 5044e4f4edf332d8fada4a35165d0d84a4bfd53a Mon Sep 17 00:00:00 2001 From: davidmirror-ops Date: Fri, 15 Dec 2023 12:26:33 -0500 Subject: [PATCH] Update references to Ingress annotations Signed-off-by: davidmirror-ops --- charts/flyte-binary/eks-production.yaml | 16 +++++++++++-- .../deployment/cloud_production.rst | 23 ++++--------------- 2 files changed, 19 insertions(+), 20 deletions(-) diff --git a/charts/flyte-binary/eks-production.yaml b/charts/flyte-binary/eks-production.yaml index 7cd3555617..ec385041d2 100644 --- a/charts/flyte-binary/eks-production.yaml +++ b/charts/flyte-binary/eks-production.yaml @@ -90,15 +90,27 @@ clusterResourceTemplates: eks.amazonaws.com/role-arn: '{{ defaultIamRole }}' ingress: create: true + ##-- Uncomment the following section if you plan to use NGINX Ingress Controller + #ingressClassName: nginx + #commonAnnotations: + # ingress.kubernetes.io/rewrite-target: / + # nginx.ingress.kubernetes.io/ssl-redirect: "true" + #httpAnnotations: + # nginx.ingress.kubernetes.io/app-root: /console + #grpcAnnotations: + # nginx.ingress.kubernetes.io/backend-protocol: GRPC + #host: # change for the URL you'll use to connect to Flyte + ## --- + + #This section assumes you are using the ALB Ingress controller. + ingressClassName: alb commonAnnotations: - #This section assumes you are using the ALB Ingress controller alb.ingress.kubernetes.io/certificate-arn: 'arn:aws:acm:::certificate/' alb.ingress.kubernetes.io/group.name: flyte alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80}, {"HTTPS":443}]' alb.ingress.kubernetes.io/scheme: internet-facing alb.ingress.kubernetes.io/ssl-redirect: '443' alb.ingress.kubernetes.io/target-type: ip - kubernetes.io/ingress.class: alb httpAnnotations: alb.ingress.kubernetes.io/actions.app-root: '{"Type": "redirect", "RedirectConfig": {"Path": "/console", "StatusCode": "HTTP_302"}}' grpcAnnotations: diff --git a/rsts/deployment/deployment/cloud_production.rst b/rsts/deployment/deployment/cloud_production.rst index 1736f1eb4c..c5993dbe53 100644 --- a/rsts/deployment/deployment/cloud_production.rst +++ b/rsts/deployment/deployment/cloud_production.rst @@ -30,27 +30,14 @@ To turn on ingress, update your ``values.yaml`` file to include the following bl .. literalinclude:: ../../../charts/flyte-binary/eks-production.yaml :caption: charts/flyte-binary/eks-production.yaml :language: yaml - :lines: 127-135 + :lines: 93-102 .. group-tab:: ``flyte-binary``/ on EKS using ALB - .. code-block:: yaml - - ingress: - create: true - commonAnnotations: - alb.ingress.kubernetes.io/certificate-arn: '' - alb.ingress.kubernetes.io/group.name: flyte - alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80}, {"HTTPS":443}]' - alb.ingress.kubernetes.io/scheme: internet-facing - alb.ingress.kubernetes.io/ssl-redirect: '443' - alb.ingress.kubernetes.io/target-type: ip - kubernetes.io/ingress.class: alb - httpAnnotations: - alb.ingress.kubernetes.io/actions.app-root: '{"Type": "redirect", "RedirectConfig": {"Path": "/console", "StatusCode": "HTTP_302"}}' - grpcAnnotations: - alb.ingress.kubernetes.io/backend-protocol-version: GRPC - host: #use a DNS CNAME pointing to your ALB + .. literalinclude:: ../../../charts/flyte-binary/eks-production.yaml + :caption: charts/flyte-binary/eks-production.yaml + :language: yaml + :lines: 106-118 .. group-tab:: ``flyte-core`` on GCP using NGINX