Skip to content

How can I redirect 80 to 443, and redirect 8000 to 4443 in the same ingress and same load balancer? #4060

Open
@monelgordillo

Description

How can I redirect 80 to 443, and redirect 8000 to 4443 in the same ingress and same load balancer?

Port 80 -> 443 (HTTPS)
Port 8000 -> 4443 (HTTPS)

I tried this, but everything it is not working as expected. Everything is redirecting to 4443.

alb.ingress.kubernetes.io/actions.ssl-redirect-blue: >
      {"Type": "redirect", "RedirectConfig": {"Protocol": "HTTPS", "Port": "443", "StatusCode": "HTTP_302"}, "Port": "80"}
 alb.ingress.kubernetes.io/actions.ssl-redirect-green: >
       {"Type": "redirect", "RedirectConfig": {"Protocol": "HTTPS", "Port": "4443", "StatusCode": "HTTP_302"}, "Port": "8000"}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions