What are GCP resources?
In the context of hosting it will be Google Cloud Platform.
Google cloud postgres and redis services.
I haven’t been able to get this working but I thought I’d drop these in here incase people find them useful.
https://hub.helm.sh/charts/halkeye/discourse That’s a helm chart for Discourse.
A few other references:
- https://github.com/trizvanov/helm-discourse
- https://github.com/halkeye-helm-charts/discourse (source for the helm hub link above)
image.repository string “halkeye/discourse”
I wouldn’t recommend any k8s setup for Discourse that isn’t building the Docker image inside the cluster, or you’re at the mercy of whoever this random person is for Discourse updates.
I’ve considered offering a service where I’d be the random person doing those updates, but I’ve been very afraid of the support implications both for myself and meta. Real Soon Now I’ll be getting my k8s infrastructure tuned for my little bare metal cluster, so I’ll think about it again then.
yeah I just noticed that. We probably could use the official one to build helm charts.
I’m not sure why he had to build his own version.
What is the entrypoint that we give to the docker container. I see that the default entrypoint is
"Cmd": [
"/bin/bash",
"-c",
"cd /pups && git pull && /pups/bin/pups --stdin"
],
which is just updating pups Should we change this with something else?
@Geoffrey_Challen Nice writeup. I wonder, to solve the problem of production DB being needed during upgrade of the image (or any bootstrap actually), wouldn’t it make sense to use backups?
The steps would be:
- You have some Discourse running with your settings, topics, users, etc.
- Before upgrade, make a backup of Discourse (using the Discourse’s backup solution)
- Generate a new image (and do it “fresh”, without your existing DB, just start over)
- Run the new container from the new image
- Restore the backup from point 2.
- Done?
The steps may be automated I believe. In this way you don’t have to modify the default scripts, you use them as intended to bootstrap a new image.
有更新吗?仍然没有官方方法将 Discourse 安装到 Kubernetes?
有关于此的更新吗?
我正在使用 Bitnami/Discourse Helm Chart,但想迁移到官方支持的 Discourse Docker 镜像。
我也一样!我正在家里搭建一个 k8s 集群。托管成本不断增加,我的小型论坛不值得那些月费。所以我想等我的 k8s 集群准备好后,将其迁移到我的集群上。如果能有一个官方的 Discourse Helm chart 就太棒了。
k8s 安装有任何更新吗?Helm 图表?
好的,我已经和 ChatGPT 沟通,了解了为什么在 2025 年需要以 root 用户身份在专用虚拟机上运行启动器 CLI 来引导 Docker 镜像…… 我已经得到了答案,并且接受了。不再需要回答我之前的问题了。
我听说有些人正在用 SeaweedFS 替换 GlusterFS。