Files
doc/基于helm chart部署gitea的配置问题.md
2025-10-19 23:17:49 +08:00

17 lines
677 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 基于helm chart部署gitea的配置问题
#### chart对于gitea数量庞大的配置项的处理
chart包是这样做的
先将values的config下的内容进行base64处理会一起放入创建的secret里
然后gitea所在的pod会执行三个初始化操作分别是创建目录写入配置应用配置
最终gitea读取配置并启动
### 注意
配置的时候,需要对应官方文档中的配置条目,对应的配置键值对要位于正确的上层位置
还有一件事,如果你是多配置->少配置secret的更新规则像是git中的merge需要手动删除整个secret重新创建否则会有垃圾配置项干扰判断