Feature: Set NC_serverid per instance

未关闭
#848 7 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
helm, kubernetes

调研方向

首先阅读 chart 当前的 workload 定义,以及 issue 中链接的 Nextcloud serverid 文档。确定如何利用 StatefulSet ordinal 为每个实例提供稳定且唯一的 NC_serverid,同时不破坏现有的 deployment。完成标准是 chart 支持按实例配置 server ID,并且其渲染后的 Kubernetes 资源反映预期的 StatefulSet 行为。

由索引模型根据 Issue 内容生成。

描述

enhancement

Description of the change

Since NC 33 the UI recommends setting NC_serverid to a unique value per server of a nextcloud cluster. Since the ids should be stable and unique it suggests using a StatefulSet and using its ordinal as the serverid value.

Docs: https://docs.nextcloud.com/server/33/admin_manual/configuration_server/config_sample_php_parameters.html#serverid

Benefits

Not sure what the actual benefit is, but since NC suggests/recommends it, I guess the chart should comply.

Possible drawbacks

No idea if setting NC_serverid has drawbacks, but switching to a StatefulSet does make things a little more complicated.

主要语言
Go Template
星标
541
派生
318
平均合并
5 天 14 小时
30 天内合并 PR
3

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

nextcloud/helm 的其他 Issue

查看 nextcloud/helm 的全部 Issue

相似的 Issue

更多 DevOps Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。