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.

Example: Configure scales
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.

Example: Inject XML scale protocol files
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

configFiles

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

image

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

image.pullSecretNames

Type

Array of string

Required

No

Image Registry

The image registry to pull the images from.

Key

image.registry

Type

string

Required

Yes

Image Repository

The image repository path to pull the images from.

Key

image.repository

Type

string

Required

No

Default

""

Flatten Image Names

If true, use only the last path segment of each image name under the configured registry and repository. Use this when the target registry requires flat image names.

Key

image.useFlattenedImageNames

Type

boolean

Required

No

Default

false

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

ingress

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

ingress.customAnnotations

Type

object

Required

No

HAProxy settings

Optional HAProxy-specific configuration for routes.

Key

ingress.haproxy

Type

object

Required

No

Properties

HAProxy timeout configuration

Timeout settings applied to the HAProxy-managed route.

Key

ingress.haproxy.timeoutConfiguration

Type

object

Required

No

Properties

HAProxy route timeout

The timeout in milliseconds applied to the route backend.

Key

ingress.haproxy.timeoutConfiguration.timeout

Type

integer

Required

No

Minimum

1

Default

3060000

Kong settings

Optional Kong-specific configuration.

Key

ingress.kong

Type

object

Required

No

Properties

Request body size

Allowed request payload size in megabytes.

Key

ingress.kong.bodySize

Type

integer

Required

No

Minimum

1

Default

1000

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

ingress.kong.customPlugins

Type

Array of string

Required

No

Kong timeout configuration

Timeout settings applied to the Kong-managed ingress.

Key

ingress.kong.timeoutConfiguration

Type

object

Required

No

Properties

Kong connect timeout

The timeout in milliseconds for establishing a connection to the upstream server.

Key

ingress.kong.timeoutConfiguration.connect

Type

integer

Required

No

Minimum

1

Default

75000

Kong read timeout

The timeout in milliseconds between two successive read operations for transmitting a request to the upstream server.

Key

ingress.kong.timeoutConfiguration.read

Type

integer

Required

No

Minimum

1

Default

3060000

Kong write timeout

The timeout in milliseconds between two successive write operations for transmitting a request to the upstream server.

Key

ingress.kong.timeoutConfiguration.write

Type

integer

Required

No

Minimum

1

Default

3120000

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

properties

Type

object

Required

No

Properties

properties.pasx

Key

properties.pasx

Type

object

Required

No

Properties

properties.pasx.mes

Key

properties.pasx.mes

Type

object

Required

No

Properties

properties.pasx.mes.scaleservice

Key

properties.pasx.mes.scaleservice

Type

object

Required

No

Properties

properties.pasx.mes.scaleservice.baseUri

Base URI for the scale service monitoring and simulation UI.

Key

properties.pasx.mes.scaleservice.baseUri

Type

string

Required

Yes

Min length

1

Default

http://localhost:8088/scaleservice

properties.pasx.mes.scaleservice.genericConfigPath

Path of generic scale adapter configurations and schema files. Only required, if the internal configurations are not sufficient.

Key

properties.pasx.mes.scaleservice.genericConfigPath

Type

string

Required

No

properties.pasx.mes.scaleservice.message

Configuration properties for incoming messages.

Key

properties.pasx.mes.scaleservice.message

Type

object

Required

No

Properties

properties.pasx.mes.scaleservice.message.concurrentConsumers

Number of concurrent threads handling incoming messages.

Key

properties.pasx.mes.scaleservice.message.concurrentConsumers

Type

integer

Required

No

Minimum

1

Default

10

properties.pasx.mes.scaleservice.message.intervalMillis

Minimum delay between 2 actual weight messages in milliseconds.

Key

properties.pasx.mes.scaleservice.message.intervalMillis

Type

integer

Required

No

Minimum

1

Default

250

properties.pasx.mes.scaleservice.message.maxConcurrentConsumers

Maximum number of concurrent threads handling incoming messages. Must not be lower than consumers.

Key

properties.pasx.mes.scaleservice.message.maxConcurrentConsumers

Type

integer

Required

No

Minimum

1

Default

20

properties.pasx.mes.scaleservice.message.timeoutSeconds

Message queue timeout, e.g. for taring or stable weight messages in seconds.

Key

properties.pasx.mes.scaleservice.message.timeoutSeconds

Type

integer

Required

No

Default

10

properties.pasx.mes.scaleservice.operationMode

Mode in which the scale service was started, possible values are "productive" and "simulation".

Key

properties.pasx.mes.scaleservice.operationMode

Type

string

Required

Yes

Default

productive

properties.pasx.mes.scaleservice.scales

Map of configuration properties for connected scales by scaleId.

Key

properties.pasx.mes.scaleservice.scales

Type

Map<string, object>

Required

No

Properties

Default

{}

properties.pasx.mes.scaleservice.scales.<scales-item-key>

Key

properties.pasx.mes.scaleservice.scales.<scales-item-key>

Type

object

Required

No

Properties

properties.pasx.mes.scaleservice.scales.<scales-item-key>.address

Address of the scale adapter.

Key

properties.pasx.mes.scaleservice.scales.<scales-item-key>.address

Type

string

Required

Yes

Min length

1

properties.pasx.mes.scaleservice.scales.<scales-item-key>.enableKeyboardLocking

Enable keyboard locking of the scale.

Key

properties.pasx.mes.scaleservice.scales.<scales-item-key>.enableKeyboardLocking

Type

boolean

Required

No

Default

false

properties.pasx.mes.scaleservice.scales.<scales-item-key>.grossWeightPosition

Position of the gross weight in the actual weight message.

Key

properties.pasx.mes.scaleservice.scales.<scales-item-key>.grossWeightPosition

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

properties.pasx.mes.scaleservice.scales.<scales-item-key>.intervalMillis

Type

integer

Required

No

properties.pasx.mes.scaleservice.scales.<scales-item-key>.locale

Locale to use for the scale adapter.

Key

properties.pasx.mes.scaleservice.scales.<scales-item-key>.locale

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

properties.pasx.mes.scaleservice.scales.<scales-item-key>.messageTimeoutSeconds

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

properties.pasx.mes.scaleservice.scales.<scales-item-key>.mode

Type

string

Required

Yes

Default

polling

properties.pasx.mes.scaleservice.scales.<scales-item-key>.netWeightPosition

Position of the net weight in the actual weight message.

Key

properties.pasx.mes.scaleservice.scales.<scales-item-key>.netWeightPosition

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

properties.pasx.mes.scaleservice.scales.<scales-item-key>.opcUa

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

properties.pasx.mes.scaleservice.scales.<scales-item-key>.opcUa.deviceNode

Type

string

Required

No

properties.pasx.mes.scaleservice.scales.<scales-item-key>.opcUa.password

OPC UA password for the simple weighing protocol.

Key

properties.pasx.mes.scaleservice.scales.<scales-item-key>.opcUa.password

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

properties.pasx.mes.scaleservice.scales.<scales-item-key>.opcUa.scaleNode

Type

string

Required

No

properties.pasx.mes.scaleservice.scales.<scales-item-key>.opcUa.username

OPC UA user name for the simple weighing protocol.

Key

properties.pasx.mes.scaleservice.scales.<scales-item-key>.opcUa.username

Type

string

Required

No

properties.pasx.mes.scaleservice.scales.<scales-item-key>.port

Port of the scale adapter.

Key

properties.pasx.mes.scaleservice.scales.<scales-item-key>.port

Type

integer

Required

No

Minimum

1024

Maximum

65535

Default

6000

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

properties.pasx.mes.scaleservice.scales.<scales-item-key>.protocol

Type

string

Required

Yes

Min length

1

Default

MT-SICS

properties.pasx.mes.scaleservice.scales.<scales-item-key>.requestTimeout

Timeout for requests to the scale adapter in milliseconds.

Key

properties.pasx.mes.scaleservice.scales.<scales-item-key>.requestTimeout

Type

integer

Required

No

Exclusive minimum

0

Default

3000

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

properties.pasx.mes.scaleservice.scales.<scales-item-key>.scaleSwitch

Type

integer

Required

No

properties.pasx.mes.scaleservice.scales.<scales-item-key>.separator

Separator character for multiple weights in one scale message.

Key

properties.pasx.mes.scaleservice.scales.<scales-item-key>.separator

Type

integer

Required

No

properties.pasx.mes.scaleservice.scales.<scales-item-key>.stableWeightPosition

Position of the stable weight in the actual weight message.

Key

properties.pasx.mes.scaleservice.scales.<scales-item-key>.stableWeightPosition

Type

integer

Required

No

properties.pasx.mes.scaleservice.scales.<scales-item-key>.tareStandardDeviation

Tare standard deviation for the scale adapter.

Key

properties.pasx.mes.scaleservice.scales.<scales-item-key>.tareStandardDeviation

Type

number

Required

No

Exclusive minimum

0

Default

0.1

properties.pasx.mes.scaleservice.scales.<scales-item-key>.tareWeightPosition

Position of the tare weight in the actual weight message.

Key

properties.pasx.mes.scaleservice.scales.<scales-item-key>.tareWeightPosition

Type

integer

Required

No

properties.pasx.mes.scaleservice.scales.<scales-item-key>.zeroTolerance

Zero tolerance for the scale adapter.

Key

properties.pasx.mes.scaleservice.scales.<scales-item-key>.zeroTolerance

Type

number

Required

No

Minimum

0

Default

0.001

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

properties.pasx.mes.scaleservice.webSocketUri

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

replicas

Type

integer

Required

No

Default

1

Service Account Configuration

Configuration for the service account.

Key

serviceAccount

Type

object

Required

No

Properties

Create Service Account

Whether to create a new service account.

Key

serviceAccount.create

Type

boolean

Required

No

Default

true

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

serviceAccount.name

Type

string

Required

No

Default

""

Truststore configuration

Configuration for the GenericService truststore init container. Controls how certificates are injected into the service truststore.

Key

truststore

Type

object

Required

No

Properties

Certificate secrets

List of Kubernetes Secret names that contain certificates to be injected into the service truststore. Each secret must follow the structure from the certificate management documentation.

Key

truststore.certificateSecretNames

Type

Array of string

Required

No

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:

Identifier-like string

Value must be a non-empty identifier that contains only letters (both uppercase and lowercase letters are allowed), digits (0-9), underscore (_), or hyphen (-).

Used by: