System Configuration

This section provides an overview of the required configuration files and repository layout to successfully install the PAS-X MES system in a GitOps-based Kubernetes environment.

At this stage, it’s assumed that you have already set up a Git repository to store your configuration files.

GitOps Operating Model and Change Management

The PAS-X MES system follows a strict GitOps operating model. All configuration and lifecycle changes of Kubernetes resources must be performed exclusively via Git and applied through Argo CD.

The Git repository represents the single source of truth for the desired system state.

It is recommended not to use the Service Configuration dialog for routine configuration changes. Changes made there are stored in the database and are not reflected in your Git repository, so they are not visible to GitOps reconciliation or drift detection.

For details about its limitations and the cases where runtime adjustments are supported, see the Service Configuration guidance.

Kubernetes resources must not be modified manually in the cluster.

This includes (but is not limited to):

  • Custom Resources

  • Deployments, StatefulSets, Jobs

  • ConfigMaps and Secrets

Any change must be done by updating the corresponding values.yaml files in the Git repository and letting Argo CD sync the cluster state.

Consequences of Manual Cluster Changes

Direct changes applied to resources inside the Kubernetes cluster (e.g. via kubectl edit, kubectl apply, or UI tools) are not supported and may lead to inconsistent system behavior.

Possible consequences include:

  • Argo CD continuously reverting changes to the Git-defined state

  • Broken or incomplete reconciliation flows

  • MES Operator workflows no longer functioning as expected

  • Increased need for manual intervention

  • In severe cases, a full uninstallation and re-deployment of affected components may be required to restore a consistent state

To ensure a stable, reproducible, and supportable system, always apply changes through Git and Argo CD.

Argo CD Application Manifest

Before you can install the mes-applications Helm chart, you must prepare an Argo CD Application manifest. This manifest tells Argo CD where to find the mes-applications chart in the OCI registry and which Git repository contains your configuration files.

The manifest uses two sources:

  • The first source references the mes-applications Helm chart from the OCI registry and points to your mes-applications-values.yaml file in your Git repository.

  • The second source provides Argo CD with access to your Git repository so it can resolve the values files referenced in the first source.

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: pasx-system
  namespace: <argo-cd-namespace>  (1)
spec:
  destination:
    namespace: <pasx-mes-namespace>  (2)
    server: https://kubernetes.default.svc
  project: default
  sources:
    - chart: mes-applications
      repoURL: <your-registry-path-to-all-charts>  (3)
      targetRevision: <chart-version>  (4)
      helm:
        valueFiles:
          - $gitRepo/<path-to-mes-applications-values.yaml>  (5)
        parameters:
          - name: source.git.revision
            value: <your-git-branch>  (6)
    - ref: gitRepo
      repoURL: <git-repo-url>  (7)
      targetRevision: <git-branch>  (6)
  syncPolicy:
    syncOptions:
      - ServerSideApply=true
1 The namespace where Argo CD is deployed.
2 The namespace where PAS-X MES resources will be created.
3 The OCI registry URL hosting all PAS-X Helm charts.
4 The version of the mes-applications chart to install.
5 Path to your mes-applications-values.yaml file relative to the Git repository root.
6 The Git branch of your configuration repository to use.
7 The URL of your Git repository containing the configuration files.

The second source block (ref: gitRepo) is required and must not be removed. Argo CD uses it to resolve the $gitRepo reference in the valueFiles path of the first source. Without it, Argo CD cannot locate your mes-applications-values.yaml file and the installation will fail.

This manifest is an intentional exception to the GitOps operating model.

Because this Application resource is what bootstraps Argo CD’s own management of the PAS-X system, it cannot be managed by Argo CD itself. It must be applied once as an initial step, either manually or via an internal automation workflow (e.g., a CI/CD pipeline or Gradle task).

All subsequent configuration and lifecycle changes must follow the GitOps approach — via Git and Argo CD.

If your registry requires flattened chart names, see Using Flattened Image Names. For OpenShift-specific guidance, refer to OpenShift Internal Registry and ImageStreams.

Git Repository Structure

The PAS-X MES SmartInstall uses a GitOps approach: configuration is stored in a Git repository that serves as the single source of truth. Argo CD consumes the repository and uses the provided files to generate and manage all required Kubernetes resources.

A recommended folder and file structure for the Git repository is shown below:

pasx-mes-deployment/
├── mes-applications-values.yaml
└── environment-configuration/
    ├── global/
    │   └── values.yaml
    ├── instance/
    │   └── values.yaml
    ├── mes-api-gateway/
    │   └── values.yaml
    ├── mes-installation-server/
    │   └── values.yaml
    ├── mes-language-packs/
    │   └── values.yaml
    ├── mes-operator/
    │   └── values.yaml
    ├── mes-otel/
    │   └── values.yaml
    ├── rabbitmq-cluster/
    │   └── values.yaml
    ├── rabbitmq-operator/
    │   └── values.yaml
    ├── pasx-argo-workflows/
    │   └── values.yaml
    ├── mes-workflows/
    │   └── values.yaml
    └── <mes-service>/   # create a dedicated folder per MES Service (e.g., central, wms, uia, ...)
        └── values.yaml

The folder names inside environment-configuration/ (e.g., mes-operator, instance) must exactly match the name of the Helm charts.

Each of these folders must contain a file named exactly values.yaml.

The path to this root configuration directory (environment-configuration/) must be configured in the mes-applications-values.yaml file under the rootFolder property. The same applies to the optional globalFile configuration file, which is expected as a path relative to this root folder.

This structure enables Argo CD to locate and apply the correct values files automatically for each chart.

Make sure that these names are used exactly in both the ApplicationSet configuration and the folder structure in your Git repository.

See Applications for the full list of applications and their corresponding chart names.

PAS-X Bootstrap Chart Configuration

The mes-applications-values.yaml file is the central configuration file for the PAS-X MES system. It drives the entire installation by configuring the ApplicationSets that Argo CD uses to generate and manage all required Applications — one per MES component and service.

This file must be stored at the root of your Git repository and referenced in the Argo CD Application manifest above.

For complete configuration options, see the MES Applications configuration documentation.

System Configuration

The systemConfiguration section of mes-applications-values.yaml lets you define system-level environment and identifier settings. These settings serve two purposes:

  • Environment verification — consumed by installation workflows to verify that the Kubernetes environment meets the required conditions before installation proceeds.

  • System identification — used to identify the system when generating the installation report.

The settings are stored in the cluster as part of the installation process.

Global Configuration

Shared configuration across multiple components can be centralized in a single file:

Individual Helm Chart Configurations

Following PAS-X Helm charts require its own configuration file stored in a subfolder matching the chart name.

Each folder must contain a file named values.yaml.