Compare commits

...

1 Commits

Author SHA1 Message Date
lovehunter9
0f54a90212 fix: add init container for files-server 2025-04-29 21:15:19 +08:00

View File

@@ -73,6 +73,28 @@ spec:
- -c - -c
- | - |
chown -R 1000:1000 /appdata; chown -R 1000:1000 /appcache; chown -R 1000:1000 /data chown -R 1000:1000 /appdata; chown -R 1000:1000 /appcache; chown -R 1000:1000 /data
- name: init-container
image: 'postgres:16.0-alpine3.18'
command:
- sh
- '-c'
- >-
echo -e "Checking for the availability of PostgreSQL Server
deployment"; until psql -h $PGHOST -p $PGPORT -U $PGUSER -d $PGDB1
-c "SELECT 1"; do sleep 1; printf "-"; done; sleep 5; echo -e " >>
PostgreSQL DB Server has started";
env:
- name: PGHOST
value: citus-headless.os-system
- name: PGPORT
value: '5432'
- name: PGUSER
value: files_os_system
- name: PGPASSWORD
value: {{ $files_postgres_password | b64dec }}
- name: PGDB1
value: os_system_files
containers: containers:
- name: gateway - name: gateway
image: beclab/appdata-gateway:0.1.18 image: beclab/appdata-gateway:0.1.18