Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Requesting support for Amazon Load Balancer (ALB) Controller #274

Closed
gnazgit opened this issue Sep 12, 2022 · 5 comments
Closed

Requesting support for Amazon Load Balancer (ALB) Controller #274

gnazgit opened this issue Sep 12, 2022 · 5 comments

Comments

@gnazgit
Copy link

gnazgit commented Sep 12, 2022

Support for Amazon Load Balancer (ALB) Controller

Right now, NGINX support and example is provided. But considering performance and native TLS certificate from AWS, ALB looks better option.

The current issue with ALB controller is, they don't provide support for rewrite-target and complex regex. Because of this, even if we were able to bring up the Login page with ALB, rest of the redirection is not working.

Please consider supporting ALB controller in future releases.

@HardNorth

ALB annotations used:

annotations:
kubernetes.io/ingress.class: "alb"
alb.ingress.kubernetes.io/actions.ssl-redirect: "{"type": "redirect", "redirectConfig": { "protocol": "HTTPS", "port": "443", "statusCode": "HTTP_301"}}"
alb.ingress.kubernetes.io/backend-protocol: HTTP
alb.ingress.kubernetes.io/healthcheck-protocol: HTTPS
alb.ingress.kubernetes.io/certificate-arn: "xxxxxxxxxxxxxxxxxxxxxx"
alb.ingress.kubernetes.io/healthcheck-path: "/health"
alb.ingress.kubernetes.io/listen-ports: "[{"HTTP":80,"HTTPS":443}]"
alb.ingress.kubernetes.io/scheme: "internal"
alb.ingress.kubernetes.io/subnets: "subnet-xxxxxxx,subnet-xxxxxxx"
alb.ingress.kubernetes.io/success-codes: "200"
alb.ingress.kubernetes.io/tags: "xxxxxx: yyyyyyyy"
alb.ingress.kubernetes.io/load-balancer-attributes: "idle_timeout.timeout_seconds=300"

ALB ingress file:

  • host: {{ $host }}
    http:
    paths:
    - path: /ui/*
    pathType: ImplementationSpecific
    backend:
    service:
    name: {{ $fullName }}-ui
    port:
    number: 8080
    - path: /uat/*
    pathType: ImplementationSpecific
    backend:
    service:
    name: {{ $fullName }}-uat
    port:
    number: 9999
    - path: /api/*
    pathType: ImplementationSpecific
    backend:
    service:
    name: {{ $fullName }}-api
    port:
    number: 8585
    - path: /*
    pathType: ImplementationSpecific
    backend:
    service:
    name: {{ $fullName }}-index
    port:
    number: 8080
@Jmainguy
Copy link

Seems like a reasonable request, can someone create a PR and examples of a test using it? https://github.com/reportportal/kubernetes/tree/develop/reportportal/templates is where you add the templatized yaml files, https://github.com/reportportal/kubernetes/blob/develop/reportportal/values.yaml is where you add default values for the helm. Choose defaults that would not use this unless specified, to keep backwards compatibility

@eldiiar-duishenaliev
Copy link

Hi there!
Is there any progress on this topic?

@aladdin-atypon
Copy link

Any update here?

@amasu
Copy link

amasu commented Feb 25, 2025

This has worked out for me:

IngressClassParams.yaml

apiVersion: eks.amazonaws.com/v1
kind: IngressClassParams
metadata:
name: alb
spec:
scheme: internet-facing

IngressClass.yaml

apiVersion: networking.k8s.io/v1
kind: IngressClass
metadata:
name: alb
annotations:
ingressclass.kubernetes.io/is-default-class: "true"
spec:
controller: eks.amazonaws.com/alb
parameters:
apiGroup: eks.amazonaws.com
kind: IngressClassParams
name: alb

Ingress.yaml

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: rp-ingress
spec:
ingressClassName: alb
rules:
- http:
paths:
- backend:
service:
name: rp-01-reportportal-index
port:
name: headless
path: /
pathType: Prefix
- backend:
service:
name: rp-01-reportportal-ui
port:
name: headless
path: /ui
pathType: Prefix
- backend:
service:
name: rp-01-reportportal-uat
port:
name: headless
path: /uat
pathType: Prefix
- backend:
service:
name: rp-01-reportportal-api
port:
name: headless
path: /api
pathType: Prefix

@Pink-Bumblebee
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants