Skip to content

K8s Meta Package

K8s Meta Package

The shopware/k8s-meta Composer package prepares your Shopware project for running on Shopware PaaS Native. It is a metapackage that installs the required dependencies and configuration files via a Symfony Flex recipe.

Version compatibility

Use the version that matches your Shopware installation:

Shopware versionk8s-meta version
6.6^1.0
6.7^2.0

Install it with:

sh
composer require shopware/k8s-meta --ignore-platform-reqs

INFO

You do not need to specify a version. Composer automatically selects the correct shopware/k8s-meta version based on the shopware/core version already installed in your project — ^1.0 for Shopware 6.6 and ^2.0 for Shopware 6.7 or higher. This is enforced via shopware/conflicts.

The --ignore-platform-reqs flag ensures that all necessary recipes are installed, even if your local PHP version differs from the required platform version.

What it installs

Dependencies

For the full list of dependencies, refer to the shopware/k8s-meta repository.

Configuration files

The Symfony Flex recipe creates the file config/packages/operator.yaml. After installation, verify that this file exists in your project.

This file configures Shopware for the PaaS Native infrastructure:

  • S3 object storage for public, private, theme, and sitemap filesystems
  • Redis for application cache and session storage
  • Cluster mode settings (cluster_setup: true, runtime_extension_management: false)
  • Admin worker disabled (queues are processed externally)
  • Elasticsearch/OpenSearch replica and shard settings
  • Monolog logging to stderr in JSON format

Additionally, files in config/packages/prod/ configure production-specific behavior:

FilePurpose
fastly.yamlFastly CDN reverse proxy and cache purging
monolog.yamlError-level logging to stderr in JSON format
opentelemetry.yamlOpenTelemetry profiler integration

Overriding configuration

WARNING

The default configuration is tuned for the PaaS Native infrastructure. Changing values can break your application if you are not familiar with the underlying services. Only override settings when you have a clear reason to do so.

You can override any value from operator.yaml using the standard Symfony configuration override mechanism. Place a YAML file in config/packages/prod/ with the same configuration keys, and its values will take precedence.

For example, to enable soft purge with stale cache serving, create or edit a file in config/packages/prod/:

yaml
shopware:
    http_cache:
        stale_while_revalidate: 300
        stale_if_error: 3600

For more details on how Symfony merges configuration files, refer to the Symfony configuration documentation.

Was this page helpful?
UnsatisfiedSatisfied
Be the first to vote!
0.0 / 5  (0 votes)