-
We'd like to run sftpgo on Kubernetes / GKE, mainly because we run most our apps there, and also to add some redundancy and increase throughput by running multiple replicas. Does anyone has experience with that? Running multiple replicas doesn't seem to be explicitly supported. The main problem we're hitting is the required temp storage, which would be different on different hosts. It seems like this would cause trouble and data corruption. Or would it be safe? We'd be using Google Cloud storage for all users, so theoretically no local storage should be necessary. We can have only read-only config file (e.g. keys of the server) and use Postgres as data provider. However, I'm not sure if something could break if we made Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 3 replies
-
Hi, I have no direct experience with this setup, however I think other users run sftpgo this way. If you use GCS as backend you shoud set Please test using this configuration and let me know if you have troubles P.S. if you use SFTPGo at your company please consider a sponsorship this will allow me to spend more time working on the project, thank you! |
Beta Was this translation helpful? Give feedback.
-
Thanks, all seems to work fine. Couple of gotchas we've encountered (I'll later see if I can send PRs for docs, but if not, at least it's here):
We've also decided to use Kubernetes for the whole configuration, including user management. Basically, we have a static config (from The static config has however one problem, because for GCS, each configured user needs credentials to access GCS. We don't want to store these credentials in git with the remaining config. So we wrote a short Python script :sorry: which merges non-secret config with secrets, and sftpgo can then load the full config file. 💡 Idea: Do you think this would be beneficial feature to have? Either native support for loading secrets from a separate file, or the script to merge config file? Thx |
Beta Was this translation helpful? Give feedback.
-
Thank you for this discussion. We are currently testing a similar setup in a Kubernetes Cluster. We use a configMap for:
We would like to avoid using the database as a dependency to be able to exclude a source of error. @juzna |
Beta Was this translation helpful? Give feedback.
-
Can anyone please share kubernetes configmap / secret template for storing host keys and consuming via variable or other method ? Thank you in advance for your support !! |
Beta Was this translation helpful? Give feedback.
-
@saralhimanshu in values.yaml
configmap:
Add more keys, if you like with id_something Please let me know, if you have suggestions for improvement |
Beta Was this translation helpful? Give feedback.
Thanks, all seems to work fine.
Couple of gotchas we've encountered (I'll later see if I can send PRs for docs, but if not, at least it's here):
We've also decided to use Kubernetes for the whole configuration, including user management. Basically, we have a static config (from
dumpdata
) committed in git, which is passed to the server vi…