Environment Variables and Command Arguments
Use configuration properties to set environment variables and pass command arguments for a component.
Note: Environment variables and command arguments are separate methods for
passing information to MATRIXX components. They do not require each other or need to be used together.
Environment Variable Properties describes the properties that allow you to specify environment variables and their values for a component.
Property | Description |
---|---|
sub_chart_name.configuration.container.environment[n].name | The name of the environment variable to add. |
sub_chart_name.configuration.container.environment[n].value | The constant value to use for this environment variable. Only use this property if
valueFrom has not been set. |
sub_chart_name.configuration.container.environment[n].valueFrom | The valueFrom structure to reference the value of the environment
variable from elsewhere in the configuration. Only use this property if
value has not been set. |
The following example shows how to specify an MTX_CUSTOM_ENV_VAR variable with a value of
wibble
and an MTX_CURRENT_NAMESPACE variable with the value of the
metadata.namespace
property, for RS Gateway:
rsgateway:
configuration:
container:
environment:
- name: "MTX_CUSTOM_ENV_VAR"
value: "wibble"
- name: "MTX_CURRENT_NAMESPACE"
valueFrom:
fieldRef:
fieldPath: metadata.namespace
Command Argument Properties describes the property used to pass command arguments into containers.
Property | Description |
---|---|
sub_chart_name.configuration.container.args[n] | The command line argument to pass to the entry point for the container. |
The following example shows how to specify the --verbose
, -j
,
and -DcustomerSystemProperty=wibble
arguments for Payment Service:
payment-service:
configuration:
container:
args:
-- "--verbose"
-- "-j"
-- "-DcustomerSystemProperty=wibble"