-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
HTTP to HTTPS Redirect Issue: Infinite loop issue with Custom Query Param #1055
Comments
Maybe you need to put annotation The name |
@cesarokuti I noticed another issue with Redirects. If I put a override for Query Param, Ingress Controller goes in infinite loops
We are adding this additional |
@M00nF1sh @cesarokuti Any help on this? |
@yks0000 I had this same problem too. After tons of searching, I found this setup which works for me: #487 (comment) |
@agconti Thanks for sharing. However, Issue I have is when I use custom query parameters and ingress controller goes in Infinite loop ie #1055 (comment) |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Issue is not yet resolved for me. |
same with me. url isn't redirect to https |
I'm having Having SSL redirect issues as well.Followed the documentation below |
@shrivastavshubham34 I also found the same issue while the same documentation. Did you resolved it? |
Hey yes I was able to resolve it. |
@shrivastavshubham34 This was my annotations, as you mentioned i have set ssl-redirect to last still the error is there. Do you find anything wrong with the annotations?
|
You need to add couple of other params as well kubernetes.io/ingress.class: albcm
alb.ingress.kubernetes.io/certificate-arn: arn:aws:acm:us-east-1:xxxxxxxxxx:certificate/xxxxxxxxx
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80}, {"HTTPS":443}]'
alb.ingress.kubernetes.io/backend-protocol: HTTPS
alb.ingress.kubernetes.io/actions.ssl-redirect: '{"Type": "redirect", "RedirectConfig": { "Protocol": "HTTPS", "Port": "443", "StatusCode": "HTTP_301"}}'
alb.ingress.kubernetes.io/healthcheck-protocol: HTTPS
alb.ingress.kubernetes.io/healthcheck-path: /api/health_check
alb.ingress.kubernetes.io/scheme: internet-facing
alb.ingress.kubernetes.io/tags: Environment=dev In spec rules ssl-redirect should be either last or 2nd last whichever works for you spec:
rules:
- host: example.com
http:
paths:
- path: /agent
backend:
serviceName: agent-service
servicePort: 4453
- path: /*
backend:
serviceName: ssl-redirect
servicePort: use-annotation |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
I am trying to create a HTTP to HTTPS redirect following doc here
Below is the config
while applying this
kubectl apply -f swagger-ingress.yaml
and describing the ingress, I see below error messageWarning ERROR 34s (x12 over 63m) ingress-controller Error instantiating target groups: Unable to find the swagger-api-ppd-qal/ssl-redirect service
I verified in AWS console and does not see redirect rule on HTTP listener. Also, I am not sure why Ingress Controller is trying to find
swagger-api-ppd-qal/ssl-redirect
service here.Am I missing something, please suggest.
K8S Version: 1.14.6
The text was updated successfully, but these errors were encountered: