G
G
grabbee2021-12-27 06:43:42
Kubernetes
grabbee, 2021-12-27 06:43:42

How to configure server API availability for Nuxt in Kubernetes?

Nuxt works with SSR true. In Kubernetes it is configured via LoadBalancer + igress-controller. And then it works, BUT the real IP addresses of users do not reach the backend.

I added "loadbalancer-proxy-protocol" to igress service and

use-forwarded-headers: 'true'
  use-proxy-protocol: 'true'

In igress-controller

Now the backend receives real IPs of users, BUT SSR in Nuxt fell off - now it cannot reach the backend by public URL (on a separate domain). And curl now falls off with an error
curl: (35) Unknown SSL protocol error in connection to


How to fix it?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question