mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-ansible-private.git
synced 2026-03-22 12:29:47 +00:00
Compare commits
3 Commits
5441e7852e
...
dd420b851c
| Author | SHA1 | Date | |
|---|---|---|---|
| dd420b851c | |||
| 07698ad8a3 | |||
| b981b12635 |
@ -34,6 +34,7 @@ spec:
|
||||
- "-ec"
|
||||
- |
|
||||
id stolon
|
||||
id root
|
||||
# Generate our keeper uid using the pod index
|
||||
IFS='-' read -ra ADDR <<< "$(hostname)"
|
||||
export STKEEPER_UID="keeper${ADDR[-1]}"
|
||||
@ -41,9 +42,13 @@ spec:
|
||||
export STKEEPER_PG_LISTEN_ADDRESS=$POD_IP
|
||||
mkdir -p /stolon-data/data
|
||||
export STOLON_DATA=/stolon-data/data
|
||||
chown stolon:stolon /stolon-data
|
||||
chown stolon:stolon $STOLON_DATA
|
||||
exec gosu stolon stolon-keeper --data-dir $STOLON_DATA
|
||||
chown root:root /stolon-data
|
||||
chown root:root $STOLON_DATA
|
||||
exec gosu root stolon-keeper --data-dir $STOLON_DATA
|
||||
securityContext:
|
||||
runAsUser: 0
|
||||
runAsGroup: 0
|
||||
allowPrivilegeEscalation: true
|
||||
env:
|
||||
- name: POD_NAME
|
||||
valueFrom:
|
||||
|
||||
Reference in New Issue
Block a user