diff --git a/resources/hydra-dispatcher/files/hydra/default.yaml b/resources/hydra-dispatcher/files/hydra/default.yaml new file mode 100644 index 0000000..f23203e --- /dev/null +++ b/resources/hydra-dispatcher/files/hydra/default.yaml @@ -0,0 +1,2 @@ +hydra: + apps: [] \ No newline at end of file diff --git a/resources/hydra-dispatcher/kustomization.yaml b/resources/hydra-dispatcher/kustomization.yaml index dcdb760..7425830 100644 --- a/resources/hydra-dispatcher/kustomization.yaml +++ b/resources/hydra-dispatcher/kustomization.yaml @@ -18,4 +18,7 @@ configMapGenerator: - BASE_URL=http://hydra-dispatcher - COOKIE_PATH=/ - DEFAULT_LOCALE=fr - - APP_LOCALES=fr,en \ No newline at end of file + - APP_LOCALES=fr,en + - name: hydra-dispatcher-apps + files: + - ./files/hydra/default.yaml \ No newline at end of file diff --git a/resources/hydra-dispatcher/resources/hydra-dispatcher-deployment.yaml b/resources/hydra-dispatcher/resources/hydra-dispatcher-deployment.yaml index 6336510..9a4761e 100644 --- a/resources/hydra-dispatcher/resources/hydra-dispatcher-deployment.yaml +++ b/resources/hydra-dispatcher/resources/hydra-dispatcher-deployment.yaml @@ -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 +