I have kong ingress on GKE as follows, which has a default path "/" forwards to a web application written in nextjs that has keycloak integration.
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: myprojqlfingress
namespace: qlf
annotations:
kubernetes.io/tls-acme: "true"
cert-manager.io/cluster-issuer: letsencrypt-qlf
kubernetes.io/ingress.class: kong
konghq.com/request-buffering: "true"
konghq.com/response-buffering: "true"
spec:
tls:
- secretName: myproject-qlf
hosts:
- myproject-qlf.mydomain.net
rules:
- host: myproject-qlf.mydomain.net
http:
paths:
- path: /rfm
pathType: ImplementationSpecific
backend:
service:
name: rfmapi
port:
number: 8091
- path: /mb
pathType: ImplementationSpecific
backend:
service:
name: mbapi
port:
number: 8094
- path: /custseg
pathType: ImplementationSpecific
backend:
service:
name: custapi
port:
number: 8093
- path: /energy
pathType: ImplementationSpecific
backend:
service:
name: energyapi
port:
number: 8097
- path: /airline
pathType: ImplementationSpecific
backend:
service:
name: airlineapi
port:
number: 8096
- path: /hotel
pathType: ImplementationSpecific
backend:
service:
name: hotelapi
port:
number: 8095
- path: /
pathType: ImplementationSpecific
backend:
service:
name: datainsightfrontwebapp
port:
number: 3000
Here I have changed domain name for confidentiality reason.
So after authentication it is throwing error:
An invalid response was received from the upstream server
The same problem was there in dev environment also which I fixed it using the annotation: konghq.com/request-buffering: "true" but in this case it is not working.
certificate and all configurations are working fine.
Any idea?