Kubernetes Setup ( - with Traefik + Longhorn ) Example #333
Replies: 1 comment 3 replies
-
Thanks for sharing this! Kubernetes is one of those technologies I hear often, but I’ve never actually dug in so I don’t understand it. With regards to this HostedGPT project, what were you looking to solve that this led to this setup? I’m just trying to figure out where best to slot it in, mentally. For example, we have support for Render and Fly, but those are obviously very specific hosts and people may want to run a machine in other places. My thinking has been that we should add support for Kamal soon since that’s much more versatile. I am moderately familiar with Kamal. What does Kubernetes help you do that’s different than Kamal? Or is it just an alternate tool to effectively do the same thing: automate deploys on any hardware? |
Beta Was this translation helpful? Give feedback.
-
Introduction
Here's an example Kubernetes setup.
Note: I do not attempt to encrypt anything other then the master credential store. Therefore
SECRET_KEY_BASE
and others are not present, as I am not entirely certain what they are actually for in the render.yaml file.Paranoia note: I used root in initContainer step to avoid modifying any Dockerfile from the repository as the goal was to get this working in minimal steps. If this project wants to support a secure kubernetes setup, here is a start and it will require more thorough consideration.
credential:edit
had an exploit and it was used during reading, or if the PVC were modified by a non-rails user, this may be potentials for compromise.Instructions
Clone repo, build and push docker image. I found the render-production target works fine. In my testing, I am using commit 7691a03
In the below:
Beta Was this translation helpful? Give feedback.
All reactions