apisix icon indicating copy to clipboard operation
apisix copied to clipboard

help request: HTTPS not working

Open ochuko3d opened this issue 3 years ago • 3 comments

Description

  • APISIX version (run apisix version): APISIX Ingress controller on EKS
  • Operating system (run uname -a): Kubernetes
  • OpenResty / Nginx version (run openresty -V or nginx -V): openresty
  • etcd version, if relevant (run curl http://127.0.0.1:9090/v1/server_info):
  • APISIX Dashboard version, if relevant: 2.13.0
  • Plugin runner version, for issues related to plugin runners:
  • LuaRocks version, for installation issues (run luarocks --version): how do i get this

Hi Guys ,

So i am trying to configure https on my ingress using AWS certificate manager. Below is the config

` gateway: #type: NodePort

If you want to keep the client source IP, you can set this to Local.

#ref: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip externalTrafficPolicy: Cluster type: LoadBalancer annotations: service.beta.kubernetes.io/aws-load-balancer-type: nlb service.beta.kubernetes.io/aws-load-balancer-backend-protocol: http service.beta.kubernetes.io/aws-load-balancer-proxy-protocol: "" service.beta.kubernetes.io/aws-load-balancer-ssl-cert: "arn:aws:acm:eu-west-1:1xxxxx:xxxx-xxxxx" service.beta.kubernetes.io/aws-load-balancer-ssl-ports: "443" externalIPs: [] http: enabled: true servicePort: 80 containerPort: 9080 tls: enabled: true servicePort: 443 containerPort: 9443 existingCASecret: "" certCAFilename: "" http2: enabled: true stream: # L4 proxy (TCP/UDP) enabled: false only: false tcp: [] udp: [] ingress: enabled: true annotations: # kubernetes.io/ingress.class: nginx # kubernetes.io/tls-acme: "true" hosts: - host: apisix.local paths: - / tls: []

- secretName: apisix-tls

hosts:

- chart-example.local`

Everything ran smoothly and i got a happy helming. on checking the ec2-loadbalancer dashboard on AWS, i saw the newly created nlb and the certifcate attached to it.

image

  1. I got this error when i tried using the redirect function image

  2. I got this error at the browser, which shows the https icon, but i cannot proceed. image

Am i to make any further modification?

Environment

  • APISIX version (run apisix version):
  • Operating system (run uname -a):
  • OpenResty / Nginx version (run openresty -V or nginx -V):
  • etcd version, if relevant (run curl http://127.0.0.1:9090/v1/server_info):
  • APISIX Dashboard version, if relevant:
  • Plugin runner version, for issues related to plugin runners:
  • LuaRocks version, for installation issues (run luarocks --version):

ochuko3d avatar Aug 17 '22 15:08 ochuko3d

The error message is self-explained. You sent a plain HTTP request to an HTTPS port. Try to use HTTPS scheme.

tokers avatar Aug 18 '22 01:08 tokers

Exactly, i changed the scheme to https, and was still getting the above. The Padlock still shows but stops there. I appreciate your prompt response, but do you have a template for SSL already enabled with AWS certificate on EKS.

ochuko3d avatar Aug 18 '22 12:08 ochuko3d

but do you have a template for SSL already enabled with AWS certificate on EKS

Sorry I cannot understand the meaning, but https://apisix.apache.org/blog/2021/10/22/cert-manager-in-ingress/ may help you.

tokers avatar Aug 19 '22 01:08 tokers

This issue has been marked as stale due to 350 days of inactivity. It will be closed in 2 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the [email protected] list. Thank you for your contributions.

github-actions[bot] avatar Aug 11 '23 10:08 github-actions[bot]

This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.

github-actions[bot] avatar Aug 26 '23 10:08 github-actions[bot]