Closed t83714 closed 1 year ago
Further technical notes:
.Values
and strip non-app-config common fields e.g. images
, autoscaler
etcappConfig
dictappConfig
dict with .Values.appConfig
closed via PR: https://github.com/magda-io/magda/pull/3468
Better way of passing deploy time config values to Scala Web Service
We currently pass deploy time config values to Scale Web Service via JVM system properties (set via command line parameters).
e.g. a final deployed k8s pod manifest (generated by helm chart) might look like the following:
Problems with the current approach
Proposed Solution
appConfig
in helm chart values file.e.g. The
appConfig
(that passes the same config data as the k8s pod manifest example above) might look like this:The string stored in
deploy-application.conf
in the configMap above will look like the following:/etc/config/deploy-application.conf
-Dconfig.file=/etc/config/deploy-application.conf