We have configured an Ingress resource on our EKS cluster with rewrites from /.*
on the load balancer to the matching URI upstream. If we visit staging.my-domain.com/
, we see a successful health-check response as expected. However, any other url, e.g. /api/
, results in a timeout from the load balancer. Below is the configuration. (SSL is disabled for now while we get it figured out). Any help would be appreciated!
# Ingress Controller: https://kubernetes-sigs.github.io/aws-load-balancer-controller/v2.2/deploy/installation/
# YAML: https://github.com/kubernetes-sigs/external-dns/blob/master/docs/tutorials/alb-ingress.md
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
kubernetes.io/ingress.class: alb
alb.ingress.kubernetes.io/scheme: internet-facing
external-dns.alpha.kubernetes.io/hostname: staging.my-domain.com
nginx.ingress.kubernetes.io/ssl-redirect: "false"
nginx.ingress.kubernetes.io/force-ssl-redirect: "false"
nginx.ingress.kubernetes.io/rewrite-target: /
name: nlx-api
spec:
rules:
- host: staging.my-domain.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: our-api
port:
number: 80
---
apiVersion: v1
kind: Service
metadata:
name: our-api
spec:
ports:
- name: http
port: 80
targetPort: 8080
type: LoadBalancer
selector:
app: our-api