Compare commits

...

3 Commits

Author SHA1 Message Date
dd420b851c a 2025-11-09 19:51:10 +00:00
07698ad8a3 Merge branch 'main' of https://gitea.fenix-dev.com/fenix-gitea-admin/iac-ansible-private 2025-11-09 14:12:56 +00:00
b981b12635 fsgroup 2025-11-09 14:12:46 +00:00

View File

@ -34,6 +34,7 @@ spec:
- "-ec" - "-ec"
- | - |
id stolon id stolon
id root
# Generate our keeper uid using the pod index # Generate our keeper uid using the pod index
IFS='-' read -ra ADDR <<< "$(hostname)" IFS='-' read -ra ADDR <<< "$(hostname)"
export STKEEPER_UID="keeper${ADDR[-1]}" export STKEEPER_UID="keeper${ADDR[-1]}"
@ -41,9 +42,13 @@ spec:
export STKEEPER_PG_LISTEN_ADDRESS=$POD_IP export STKEEPER_PG_LISTEN_ADDRESS=$POD_IP
mkdir -p /stolon-data/data mkdir -p /stolon-data/data
export STOLON_DATA=/stolon-data/data export STOLON_DATA=/stolon-data/data
chown stolon:stolon /stolon-data chown root:root /stolon-data
chown stolon:stolon $STOLON_DATA chown root:root $STOLON_DATA
exec gosu stolon stolon-keeper --data-dir $STOLON_DATA exec gosu root stolon-keeper --data-dir $STOLON_DATA
securityContext:
runAsUser: 0
runAsGroup: 0
allowPrivilegeEscalation: true
env: env:
- name: POD_NAME - name: POD_NAME
valueFrom: valueFrom: