PAS-X Scale Service Values Schema
Schema for PAS-X Scale Service configuration values
Example for configuring scales
Use properties to configure scales, such as endpoints, ports, polling intervals, protocol selection, and tolerance settings.
properties:
pasx.mes.scaleservice.scales.SIMULATION.address: "simulation-scale.example.local"
pasx.mes.scaleservice.scales.SIMULATION.interval-millis: "750"
pasx.mes.scaleservice.scales.SIMULATION.port: "10001"
pasx.mes.scaleservice.scales.SARTORIUS.address: "sartorius-scale.example.local"
pasx.mes.scaleservice.scales.SARTORIUS.port: "10001"
pasx.mes.scaleservice.scales.SARTORIUS.protocol: "SARTORIUS"
pasx.mes.scaleservice.scales.SARTORIUS.zero-tolerance: "0.003"
pasx.mes.scaleservice.scales.METTLER.address: "mettler-scale.example.local"
pasx.mes.scaleservice.scales.METTLER.interval-millis: "50"
pasx.mes.scaleservice.scales.METTLER.port: "6000"
Example for injecting custom scale protocol files
By default, the Scale Service utilizes predefined protocols. The existing internal generic protocols are: G-MMR, G-SICS, G-SICS-AW, G-SICS-SNS.
You can create additional protocols with their own name or modify existing ones by referencing the related name, e.g. G-SICS-AW.
To inject custom XML and XSD files, define them under configFiles in your Helm values file.
Each entry maps a filename to its corresponding file content.
All provided files are automatically merged into the service’s ConfigMap and mounted into the Scale Service Pod.
If any config files are defined, the property pasx.mes.scaleservice.generic-config-path=/etc/config/pasx is automatically configured.
When the Scale Service pod starts, the files are available at /etc/config/pasx/<filename> and the service reads them from there.
configFiles:
mmr.xml: |
<?xml version="1.0" encoding="UTF-8"?>
<MettlerConfig>
...
</MettlerConfig>
mettler.xsd: |
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema ...>
...
</xs:schema>
Additional configuration files
Map of filenames to file contents. Each entry is added to the service ConfigMap as a separate file and mounted into the container at runtime. Use this for configuration that must be provided as real files instead of application properties, for example XML, XSD, JSON, or other file-based service inputs.
Key |
|
Type |
object |
Required |
No |
Image configuration
Configuration for the images used in the deployment.
|
If all images are hosted in the same registry take this configuration to the global values file to avoid redundant configuration. |
Key |
|
Type |
object |
Required |
Yes |
Properties |
|
List of Image Pull Secret Names
List of secret names used to authenticate when pulling images from a container registry
Key |
|
Type |
Array of string |
Required |
No |
Image Registry
The image registry to pull the images from.
Key |
|
Type |
string |
Required |
Yes |
Ingress settings
Configuration for exposing the service to external traffic.
This section may contain platform-independent settings as well as platform-specific settings. Platform-specific options are only applied where supported. For example, Kong settings apply to Kubernetes deployments using Kong, while HAProxy-related settings apply to OpenShift.
Key |
|
Type |
object |
Required |
No |
Properties |
Custom Ingress annotations
Additional annotations to apply to the generated Ingress resource or to the OpenShift Route that is created instead of it on OpenShift platforms. Must be a map of string keys to string values.
Please consult your Ingress controller or router documentation for the correct key/value syntax.
Key |
|
Type |
object |
Required |
No |
HAProxy settings
Optional HAProxy-specific configuration for routes.
Key |
|
Type |
object |
Required |
No |
Properties |
Kong settings
Optional Kong-specific configuration.
Key |
|
Type |
object |
Required |
No |
Properties |
Request body size
Allowed request payload size in megabytes.
Key |
|
Type |
integer |
Required |
No |
Minimum |
1 |
Default |
|
Custom Kong plugins
List of names of additional custom Kong plugins to be applied to the ingress. These plugins must be created by the user before deployment. This property only references existing KongPlugin resources by their metadata.name values and does not create the plugins.
Example: customPlugins: ["kong-openid-connect", "ip-restriction-pasx-ui"]
Key |
|
Type |
Array of string |
Required |
No |
Kong timeout configuration
Timeout settings applied to the Kong-managed ingress.
Key |
|
Type |
object |
Required |
No |
Properties |
Kong connect timeout
The timeout in milliseconds for establishing a connection to the upstream server.
Key |
|
Type |
integer |
Required |
No |
Minimum |
1 |
Default |
|
Service-specific properties
Map of service-specific configuration properties. Use this for normal runtime configuration keys that the service reads as application properties. The structure of this object depends on service implementation.
Key |
|
Type |
object |
Required |
No |
Properties |
properties.pasx
Key |
|
Type |
object |
Required |
No |
Properties |
properties.pasx.mes
Key |
|
Type |
object |
Required |
No |
Properties |
properties.pasx.mes.scaleservice
Key |
|
Type |
object |
Required |
No |
Properties |
|
properties.pasx.mes.scaleservice.baseUri
Base URI for the scale service monitoring and simulation UI.
Key |
|
Type |
string |
Required |
Yes |
Min length |
1 |
Default |
|
properties.pasx.mes.scaleservice.genericConfigPath
Path of generic scale adapter configurations and schema files. Only required, if the internal configurations are not sufficient.
Key |
|
Type |
string |
Required |
No |
properties.pasx.mes.scaleservice.message
Configuration properties for incoming messages.
Key |
|
Type |
object |
Required |
No |
Properties |
properties.pasx.mes.scaleservice.message.concurrentConsumers
Number of concurrent threads handling incoming messages.
Key |
|
Type |
integer |
Required |
No |
Minimum |
1 |
Default |
|
properties.pasx.mes.scaleservice.message.intervalMillis
Minimum delay between 2 actual weight messages in milliseconds.
Key |
|
Type |
integer |
Required |
No |
Minimum |
1 |
Default |
|
properties.pasx.mes.scaleservice.message.maxConcurrentConsumers
Maximum number of concurrent threads handling incoming messages. Must not be lower than consumers.
Key |
|
Type |
integer |
Required |
No |
Minimum |
1 |
Default |
|
properties.pasx.mes.scaleservice.message.timeoutSeconds
Message queue timeout, e.g. for taring or stable weight messages in seconds.
Key |
|
Type |
integer |
Required |
No |
Default |
|
properties.pasx.mes.scaleservice.operationMode
Mode in which the scale service was started, possible values are "productive" and "simulation".
Key |
|
Type |
string |
Required |
Yes |
Default |
|
properties.pasx.mes.scaleservice.scales
Map of configuration properties for connected scales by scaleId.
Key |
|
Type |
Map<string, object> |
Required |
No |
Properties |
|
Default |
|
properties.pasx.mes.scaleservice.scales.<scales-item-key>
Key |
|
Type |
object |
Required |
No |
Properties |
properties.pasx.mes.scaleservice.scales.<scales-item-key>.address
Address of the scale adapter.
Key |
|
Type |
string |
Required |
Yes |
Min length |
1 |
properties.pasx.mes.scaleservice.scales.<scales-item-key>.enableKeyboardLocking
Enable keyboard locking of the scale.
Key |
|
Type |
boolean |
Required |
No |
Default |
|
properties.pasx.mes.scaleservice.scales.<scales-item-key>.grossWeightPosition
Position of the gross weight in the actual weight message.
Key |
|
Type |
integer |
Required |
No |
properties.pasx.mes.scaleservice.scales.<scales-item-key>.intervalMillis
Interval between 2 actual weight messages in milliseconds. If none set, falls back to "pasx.mes.scaleservice.message.interval-millis".
Key |
|
Type |
integer |
Required |
No |
properties.pasx.mes.scaleservice.scales.<scales-item-key>.locale
Locale to use for the scale adapter.
Key |
|
Type |
object |
Required |
Yes |
properties.pasx.mes.scaleservice.scales.<scales-item-key>.messageTimeoutSeconds
Timeout for messages from the scale adapter in seconds. If none set, falls back to globally configured timeout.
Key |
|
Type |
integer |
Required |
No |
properties.pasx.mes.scaleservice.scales.<scales-item-key>.mode
Communication mode to get actual weights from the scale. Possible values: [polling, active].
Key |
|
Type |
string |
Required |
Yes |
Default |
|
properties.pasx.mes.scaleservice.scales.<scales-item-key>.netWeightPosition
Position of the net weight in the actual weight message.
Key |
|
Type |
integer |
Required |
No |
properties.pasx.mes.scaleservice.scales.<scales-item-key>.opcUa
OPC UA configuration, required only for scales using the OPC-UA-SIMPLE-WEIGHING protocol.
Key |
|
Type |
object |
Required |
No |
Properties |
properties.pasx.mes.scaleservice.scales.<scales-item-key>.opcUa.deviceNode
Configured OPC UA device node. Can be browse name or node id. Only required if opcScaleNode was configured as browse name.
Key |
|
Type |
string |
Required |
No |
properties.pasx.mes.scaleservice.scales.<scales-item-key>.opcUa.password
OPC UA password for the simple weighing protocol.
Key |
|
Type |
string |
Required |
No |
properties.pasx.mes.scaleservice.scales.<scales-item-key>.opcUa.scaleNode
Configured OPC UA scale node. Can be browse name or node id.
Key |
|
Type |
string |
Required |
No |
properties.pasx.mes.scaleservice.scales.<scales-item-key>.opcUa.username
OPC UA user name for the simple weighing protocol.
Key |
|
Type |
string |
Required |
No |
properties.pasx.mes.scaleservice.scales.<scales-item-key>.port
Port of the scale adapter.
Key |
|
Type |
integer |
Required |
No |
Minimum |
1024 |
Maximum |
65535 |
Default |
|
properties.pasx.mes.scaleservice.scales.<scales-item-key>.protocol
Protocol to use for the scale adapter. Possible values: BIZERBA-IXNET, BIZERBA-ST, G-MMR, G-SICS, MT-SICS, OPC-UA-SIMPLE-WEIGHING, SARTORIUS or any other string (for custom generic protocols).
Key |
|
Type |
string |
Required |
Yes |
Min length |
1 |
Default |
|
properties.pasx.mes.scaleservice.scales.<scales-item-key>.requestTimeout
Timeout for requests to the scale adapter in milliseconds.
Key |
|
Type |
integer |
Required |
No |
Exclusive minimum |
0 |
Default |
|
properties.pasx.mes.scaleservice.scales.<scales-item-key>.scaleSwitch
Scale switch id to send to the scale in initialization. Set to null to skip sending a scale switch command.
Key |
|
Type |
integer |
Required |
No |
properties.pasx.mes.scaleservice.scales.<scales-item-key>.separator
Separator character for multiple weights in one scale message.
Key |
|
Type |
integer |
Required |
No |
properties.pasx.mes.scaleservice.scales.<scales-item-key>.stableWeightPosition
Position of the stable weight in the actual weight message.
Key |
|
Type |
integer |
Required |
No |
properties.pasx.mes.scaleservice.scales.<scales-item-key>.tareStandardDeviation
Tare standard deviation for the scale adapter.
Key |
|
Type |
number |
Required |
No |
Exclusive minimum |
0 |
Default |
|
properties.pasx.mes.scaleservice.scales.<scales-item-key>.tareWeightPosition
Position of the tare weight in the actual weight message.
Key |
|
Type |
integer |
Required |
No |
properties.pasx.mes.scaleservice.scales.<scales-item-key>.zeroTolerance
Zero tolerance for the scale adapter.
Key |
|
Type |
number |
Required |
No |
Minimum |
0 |
Default |
|
properties.pasx.mes.scaleservice.webSocketUri
The URI to be used for web socket connection. If not specified the host name is automatically determined by JAVA INET API.
Key |
|
Type |
string |
Required |
No |
Number of replicas
The number of replicas for the service.
|
On production systems, this feature must only be used for the “central” service |
Key |
|
Type |
integer |
Required |
No |
Default |
|
Service Account Configuration
Configuration for the service account.
Key |
|
Type |
object |
Required |
No |
Properties |
Create Service Account
Whether to create a new service account.
Key |
|
Type |
boolean |
Required |
No |
Default |
|
Service Account Name
The name of the service account to use. If not specified and serviceAccount.create is true, a service account will be created using the chart’s fully qualified name. If create is false and no name is specified, the default service account will be used.
Key |
|
Type |
string |
Required |
No |
Default |
"" |
Truststore configuration
Configuration for the GenericService truststore init container. Controls how certificates are injected into the service truststore.
Key |
|
Type |
object |
Required |
No |
Properties |
Appendix: Regex-validated strings
Some configuration values are strings that must follow a specific format. Such values are validated using a regular expression (regex) constraint.
Patterns used in this schema: