feat(hydra-dispatcher): mount default apps config as volume

This commit is contained in:
wpetit 2023-02-01 11:30:41 +01:00
parent 9e73054781
commit 51535d76bf
3 changed files with 15 additions and 2 deletions

View File

@ -0,0 +1,2 @@
hydra:
apps: []

View File

@ -18,4 +18,7 @@ configMapGenerator:
- BASE_URL=http://hydra-dispatcher
- COOKIE_PATH=/
- DEFAULT_LOCALE=fr
- APP_LOCALES=fr,en
- APP_LOCALES=fr,en
- name: hydra-dispatcher-apps
files:
- ./files/hydra/default.yaml

View File

@ -17,12 +17,20 @@ spec:
io.kompose.service: hydra-dispatcher
spec:
containers:
- name: hydra
- name: hydra-dispatcher
image: reg.cadoles.com/cadoles/hydra-dispatcher-v1:v0.0.0-159-gd91e77b
envFrom:
- configMapRef:
name: hydra-dispatcher-env
volumeMounts:
- mountPath: /var/www/config/hydra
name: hydra-dispatcher-apps
ports:
- containerPort: 80
resources: {}
restartPolicy: Always
volumes:
- name: hydra-dispatcher-apps
configMap:
name: hydra-dispatcher-apps