N
Novu9mo ago
Zaboti

Need help with kubernetes setup

We want to self host novu on our cluster, but having some difficulties. The helm approach is not working, so i made deployment file from the docker-compose.yaml Now things seem to work, but when i put an ingress in front of the whole setup there are some problems. The login page comes up, but when it tries to communicate with the api pod via ingress i'm getting 404.. i guess something with the ingress routing but cant figure it out. Here is the relevant part of the ingress: ========== creationTimestamp: "2024-03-06T13:12:40Z" generation: 9 name: novu-ingress namespace: novu resourceVersion: "331343269" uid: b5fc4181-8da5-4e58-9e00-48e2546a9c78 spec: ingressClassName: nginx-ingress rules: - host: novu.domain.com http: paths: - backend: service: name: novu-web-service port: number: 4200 path: / pathType: Prefix - backend: service: name: novu-api-service port: number: 3000 path: /v1 pathType: Prefix
No description
8 Replies
Zac Clifton
Zac Clifton9mo ago
I would look at setting up the reverse proxy variables here https://docs.novu.co/self-hosting-novu/deploy-with-docker#reverse-proxy-load-balancers However this is not something we officially support at this moment but we should be releasing an official helm chart soonish.
Zaboti
ZabotiOP9mo ago
it is like the API_CONTEXT_PATH dosent affect anything. i set it to api-something but the frontend is still trying to connect to subdomain.domain.com/v1 novu-web-85685fd5d6-lk4dl:/app$ env | grep API_CONTEXT API_CONTEXT_PATH=api-something
Zaboti
ZabotiOP9mo ago
No description
Zac Clifton
Zac Clifton9mo ago
What do you have set for the
REACT_APP_API_URL
REACT_APP_API_URL
env url?
Novu_Bot
Novu_Bot9mo ago
@Zaboti, you just advanced to level 1!
Zac Clifton
Zac Clifton9mo ago
Just to clarify, is the api not responding or the web not hitting the right endpoint?
Zaboti
ZabotiOP9mo ago
the web is not hitting the right endpoint. i'm getting 404
Want results from more Discord servers?
Add your server