[英]How to update max_connections in postgresql deployed on Kubernetes pod
I want to update the max_connection count in /var/lib/postgresql/data/pgdata/postgresql.conf file, postgresql database is deployed in the form of pod.我想更新/var/lib/postgresql/data/pgdata/postgresql.conf文件中的max_connection计数,postgresql数据库以pod的形式部署。 There is no vim present inside pod to update the file, nor I could modify the Dockerfile to install vim, as I don't have access for that.
pod 中没有 vim 来更新文件,我也无法修改 Dockerfile 以安装 vim,因为我无权访问它。 Also I have tried adding the args and command in the deployment.yaml file
我也尝试在 deployment.yaml 文件中添加参数和命令
containers:
- name: postgres
image: postgres:latest
args: ["-c", "max_connections=500"]
still no luck for it.仍然没有运气。
sed
to edit this file?sed
来编辑这个文件吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.