Specifying the Path of the Volume Where the Secrets are Mounted
To specify the path to the volume where the secrets are mounted, you can specify the
volume_path parameter in a JSON file or as a JSON string.
In a JSON File
- Set the
volume_pathparameter in a.jsonfile. For example,k8s_secrets_config.jsoncontains:{ "volume_path": "/etc/test" } - Set the path to the
.jsonfile in theFLOGO_APP_PROPS_K8S_VOLUMEenvironment variable. For example:FLOGO_APP_PROPS_K8S_VOLUME=k8s_secrets_config.json
As a JSON String
Set the
FLOGO_APP_PROPS_K8S_VOLUME environment variable as a JSON string as follows:
FLOGO_APP_PROPS_K8S_VOLUME="{\"volume_path\":\"\/etc\/test\"}"