Is there a way to run “stolonctl” utility from non-root user ?
In my setup, the processes are running from “stolon” user.
But any stolonctl commands can be run ONLY from ROOT user.
My company infrastructure has a strict requirement of running applications from a NON-ROOT user.
Please advise, whether any way to run “stolonctl” utility from non-root user ?
stolon@stolon-keeper3-0:~$ stolonctl --cluster-name=kube-stolon3 --store-backend=kubernetes --kube-resource-kind=configmap update -p ‘{“pgParameters”: { “shared_buffers” : “108MB”} }’
nil cluster data:
root@stolon-keeper3-0:/stolon-data/postgres# stolonctl --cluster-name=kube-stolon3 --store-backend=kubernetes --kube-resource-kind=configmap update -p ‘{“pgParameters”: { “shared_buffers” : “108MB”} }’
root@stolon-keeper3-0:/stolon-data/postgres# ps -ef
UID PID PPID C STIME TTY TIME CMD
stolon 1 0 1 03:11 ? 00:00:28 stolon-keeper --data-dir /stolon-data
root 59 0 0 03:12 pts/0 00:00:00 bash
stolon 4335 1 0 03:31 ? 00:00:00 /usr/lib/postgresql/14/bin/postgres -D /stolon-data/postgres -c unix_socket_directories=/tmp
stolon 4336 4335 0 03:31 ? 00:00:00 postgres: logger
stolon 4338 4335 0 03:31 ? 00:00:00 postgres: checkpointer
stolon 4339 4335 0 03:31 ? 00:00:00 postgres: background writer
stolon 4340 4335 0 03:31 ? 00:00:00 postgres: walwriter
stolon 4341 4335 0 03:31 ? 00:00:00 postgres: autovacuum launcher
stolon 4342 4335 0 03:31 ? 00:00:00 postgres: stats collector
stolon 4343 4335 0 03:31 ? 00:00:00 postgres: logical replication launcher
stolon 6225 4335 0 03:40 ? 00:00:00 postgres: stolon postgres [local] SELECT
root 6226 59 0 03:40 pts/0 00:00:00