【发布时间】:2020-07-02 03:09:20
【问题描述】:
我正在尝试在我的 postgres 数据库 pod 中设置一个 postgres 参数 (shared_buffers)。我正在尝试设置一个 init 容器来设置 db 变量,但它不起作用,因为 init 容器以 root 用户身份运行。
在 pod 上编辑 db 变量的最佳方法是什么?我没有能力在图像中进行更改,因为不同实例的变量需要不同。如果有帮助,我需要运行的命令是“postgres -c”命令。
"root" execution of the PostgreSQL server is not permitted.
The server must be started under an unprivileged user ID to prevent
possible system security compromise. See the documentation for
more information on how to properly start the server.
【问题讨论】:
-
能否包含您正在尝试的部署 yaml?
标签: postgresql docker kubernetes deployment containers