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

HTTPS Redirection #39

Open
OlehObodin opened this issue Mar 22, 2022 · 1 comment
Open

HTTPS Redirection #39

OlehObodin opened this issue Mar 22, 2022 · 1 comment

Comments

@OlehObodin
Copy link

OlehObodin commented Mar 22, 2022

How to implement redirection to https using this chart?
I was driven by this example:
https://kubernetes-sigs.github.io/aws-load-balancer-controller/v2.4/guide/tasks/ssl_redirect/

I wrote this instructions:

annotations:
      kubernetes.io/ingress.class: alb
      alb.ingress.kubernetes.io/scheme: internet-facing
      alb.ingress.kubernetes.io/target-type: ip
      alb.ingress.kubernetes.io/cetificate-arn: arn:aws:acm:eu-west-3:999722084027:certificate/6c66eca8-4da5-476f-9529-e6890de3f11a
      alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80}, {"HTTPS":443}]'
      alb.ingress.kubernetes.io/actions.ssl-redirect: '443'
spec:
  ingressClassName: alb
  rules:
    - http:
        paths:
         - path: /users/*
           pathType: ImplementationSpecific
           backend:
             service:
               name: user-service
               port:
                 number: 80
         - path: /*
           pathType: ImplementationSpecific
           backend:
             service:
               name: default-service
               port:
                 number: 80

But it is does not help(

@OlehObodin
Copy link
Author

OlehObodin commented Mar 25, 2022

It works , no need to edit spec

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

1 participant