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 - BASE_URL=http://hydra-dispatcher
- COOKIE_PATH=/ - COOKIE_PATH=/
- DEFAULT_LOCALE=fr - 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 io.kompose.service: hydra-dispatcher
spec: spec:
containers: containers:
- name: hydra - name: hydra-dispatcher
image: reg.cadoles.com/cadoles/hydra-dispatcher-v1:v0.0.0-159-gd91e77b image: reg.cadoles.com/cadoles/hydra-dispatcher-v1:v0.0.0-159-gd91e77b
envFrom: envFrom:
- configMapRef: - configMapRef:
name: hydra-dispatcher-env name: hydra-dispatcher-env
volumeMounts:
- mountPath: /var/www/config/hydra
name: hydra-dispatcher-apps
ports: ports:
- containerPort: 80 - containerPort: 80
resources: {} resources: {}
restartPolicy: Always restartPolicy: Always
volumes:
- name: hydra-dispatcher-apps
configMap:
name: hydra-dispatcher-apps