-
Notifications
You must be signed in to change notification settings - Fork 2
Example: Config container
Stéphane Brunner edited this page May 31, 2024
·
1 revision
Example of using helm-application on an application based on tow container, one with the configuration, and one with the application.
One concrete example is using the Camptocamp generic MapServer image, and one image that contains the MapFiles.
For that, we use the following values
services:
mapserver:
enabled: true
volumes:
configs:
emptyDir: {}
initContainers:
config:
image:
repository: camptocamp/project-config
tag: prod
args:
- bash
- -c
- cp -a /etc/mapserver/* /etc/configs/
volumeMounts:
/etc/configs:
name: configs
containers:
mapserver:
image:
repository: camptocamp/mapserver
tag: 8.0-gdal3.7
volumeMounts:
/etc/mapserver:
name: configs
readOnly: true