https://www.growthbook.io/ logo
m

miniature-agency-3305

03/22/2023, 2:53 PM
Hey! ๐Ÿ˜„ I wanted to try self hosting Growthbook in a kubernetes cluster, is there any documentation available on how to achieve this? Should I convert the docker compose file to a kubernetes resource?
f

fresh-football-47124

03/23/2023, 4:57 PM
Hi Anton, we donโ€™t have a lot of documentation on that -but I do know it works. We have many customers on kubernetes
a

abundant-airline-48890

05/25/2023, 9:13 PM
Hi ๐Ÿ‘‹, I am glad to hear that it's possible to deploy on kubernetes. If you know someone who find out how to solve this matter, I would be happy simple smile
f

fresh-football-47124

05/25/2023, 9:29 PM
what issue are you running into Adda?
a

abundant-airline-48890

05/25/2023, 9:30 PM
I detailled everything in an issue https://github.com/growthbook/growthbook/issues/1303
It seems the front application can't connect to the back
m

miniature-agency-3305

05/31/2023, 3:44 PM
I am just doing it on a VM for now and not in a cluster so I sadly canโ€™t help.
f

fresh-football-47124

05/31/2023, 3:45 PM
Oh, Adda and I sorted it out- we had to open a second port for the API and adjust the API_HOST and APP_ORIGIN to match the public urls
๐Ÿ™Œ 1
a

abundant-airline-48890

05/31/2023, 3:47 PM
Exactly, I had the same problem. Thanks to Graham now it's solved.
v

victorious-toddler-21910

06/02/2023, 7:24 PM
hi @abundant-airline-48890 @fresh-football-47124 In my case, the backend keeps getting killed. I have set the
API_HOST
and
APP_ORIGIN
. I have also
CORS_ORIGIN_REGEX
and
JWT_SECRET
suggested in the issue but it's still the same. Any suggestions please?
f

fresh-football-47124

06/02/2023, 8:28 PM
any errors logged?
often this can happen if you are not able to connect to Mongo
v

victorious-toddler-21910

06/02/2023, 11:35 PM
there's nothing specific in the logs, only what I shared in the screenshot.
I can also confirm that it was able to connect to Mongo as it created these collections
f

fresh-football-47124

06/02/2023, 11:37 PM
Can you DM me the env variables or docker compose yml file?
v

victorious-toddler-21910

06/04/2023, 12:35 AM
Oh, I'm not using a docker compose yml. I'm deploying it to kubernetes. However I'm using the same configuration that worked fine when i used docker compose
f

fresh-football-47124

06/04/2023, 8:23 AM
Iโ€™ve helped others with Kubernetes
it can be from the ports not being open
v

victorious-toddler-21910

06/04/2023, 12:18 PM
Yhh, I checked this too. Sometimes, it's the frontend and most times it's the back end but I can't seem to get both of them up at the same time
this is another common error when I restart deployments
Hi @fresh-football-47124 I figured out what my issue was. This may be useful to someone else. I pre-configured memory requests and limits of about 200MiB whereas growthbook pods use about 400MiB The configuration below works okay for me. This configuration can also be ignored.
f

fresh-football-47124

06/04/2023, 10:42 PM
Oh interesting
thanks for the information
๐Ÿ™๐Ÿฝ 1
a

abundant-airline-48890

06/05/2023, 7:00 AM
Thanks for the information
๐Ÿ™๐Ÿฝ 1
2 Views