shopware

by robjuz

Helm chartv2.0.0App 6.4.7

Web publishing platform for building blogs and websites.

About this chart

Shopware 6

Shopware 6 offers all online merchants maximum flexibility, the freedom to grow and focus on the perfect customer experience. Shopware 6 is the ecommerce solution for all conceivable channels of the present and future.

TL;DR

$ helm repo add robjuz https://robjuz.github.io/helm-charts/
$ helm install shopware robjuz/shopware

Introduction

This chart bootstraps a Shopware deployment on a Kubernetes cluster using the Helm package manager.

It also packages the Bitnami MariaDB chart which is required for bootstrapping a MariaDB deployment for the database requirements of the Shopware application, the Bitnami Elasticsearch chart that is used to indexing, the Bitnami Minio chart that is used to store documents, media, theme, asset and sitemap files

This chart has been tested to work with NGINX Ingress, cert-manager and Prometheus on top of the k3s.

Prerequisites

  • Kubernetes 1.19+
  • Helm 3.1.0
  • PV provisioner support in the underlying infrastructure
  • ReadWriteMany volumes for deployment scaling (only when installing external plugins)

Installing the Chart

To install the chart with the release name shopware:

helm install shopware robjuz/shopware

The command deploys Shopware on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the shopware deployment:

helm delete shopware

The command removes all the Kubernetes components associated with the chart and deletes the release.

Parameters

Global parameters

NameDescriptionValue
global.imageRegistryGlobal Docker image registry""
global.imagePullSecretsGlobal Docker registry secret names as an array[]
global.storageClassGlobal StorageClass for Persistent Volume(s)""

Common parameters

NameDescriptionValue
kubeVersionOverride Kubernetes version""
nameOverrideString to partially override common.names.fullname""
fullnameOverrideString to fully override common.names.fullname""
commonLabelsLabels to add to all deployed objects{}
commonAnnotationsAnnotations to add to all deployed objects{}
clusterDomainKubernetes cluster domain namecluster.local

Shopware Image parameters

NameDescriptionValue
image.registryShopware image registrydocker.io
image.repositoryShopware image repositoryshyim/shopware
image.tagShopware image tag (immutable tags are recommended)6.4.6.0
image.pullPolicyShopware image pull policyIfNotPresent
image.pullSecretsShopware image pull secrets[]
image.debugEnable image debug modefalse

Shopware Configuration parameters

NameDescriptionValue
shopwareUsernameShopware admin usernameadmin
shopwarePasswordShopware admin password (Defaults to a random 10-character alphanumeric string if not set )""
shopwareLocaleShopware default languagede-DE
shopwareCurrencyShopware default currencyEUR
shopwareAppEnvShopware environmentprod
shopwareInstanceIdShopware instance ID (Defaults to a random 64-character alphanumeric string if not set )""
shopwareAppUrlShopware URL""
shopwareAppSecretShopware Secret (Defaults to a random 64-character alphanumeric string if not set )""
mailerUrlMailer URLnull://localhost
activePluginsComma separated list of plugins that should be activated""
httpCache.enabledEnable http cachetrue
httpCache.defaultTtlHttp cache default Time to live7200
cache.adapterAdapter to use for cachingredis
cache.databaseDatabase to use for caching0
session.adapterAdapter to use for sessionredis
session.databaseDatabase to use for session1

Shopware deployment parameters

NameDescriptionValue
replicaCountNumber of Shopware replicas to deploy1
updateStrategy.typeShopware deployment strategy typeRollingUpdate
updateStrategy.rollingUpdateShopware deployment rolling update configuration parameters{}
schedulerNameAlternate scheduler""
serviceAccountNameServiceAccount namedefault
hostAliasesShopware pod host aliases[]
extraVolumesOptionally specify extra list of additional volumes for Shopware pods[]
extraVolumeMountsOptionally specify extra list of additional volumeMounts for Shopware container(s)[]
extraContainerPortsOptionally specify extra list of additional ports for Shopware container(s)[]
sidecarsAdd additional sidecar containers to the Shopware pod[]
initContainersAdd additional init containers to the Shopware pods[]
podLabelsExtra labels for Shopware pods{}
podAnnotationsAnnotations for Shopware pods{}
podAffinityPresetPod affinity preset. Ignored if affinity is set. Allowed values: soft or hard""
podAntiAffinityPresetPod anti-affinity preset. Ignored if affinity is set. Allowed values: soft or hardsoft
nodeAffinityPreset.typeNode affinity preset type. Ignored if affinity is set. Allowed values: soft or hard""
nodeAffinityPreset.keyNode label key to match. Ignored if affinity is set""
nodeAffinityPreset.valuesNode label values to match. Ignored if affinity is set[]
affinityAffinity for pod assignment{}
nodeSelectorNode labels for pod assignment{}
tolerationsTolerations for pod assignment[]
resources.limitsThe resources limits for the Shopware container{}
resources.requestsThe requested resources for the Shopware container{}
containerPorts.httpShopware HTTP container port8080
containerPorts.httpsShopware HTTPS container port8443
podSecurityContext.enabledEnabled Shopware pods' Security Contexttrue
podSecurityContext.fsGroupSet Shopware pod's Security Context fsGroup1001
containerSecurityContext.enabledEnabled Shopware containers' Security Contexttrue
containerSecurityContext.runAsUserSet Shopware container's Security Context runAsUser1001
containerSecurityContext.runAsNonRootSet Shopware container's Security Context runAsNonRoottrue
livenessProbe.enabledEnable livenessProbetrue
livenessProbe.initialDelaySecondsInitial delay seconds for livenessProbe120
livenessProbe.periodSecondsPeriod seconds for livenessProbe10
livenessProbe.timeoutSecondsTimeout seconds for livenessProbe5
livenessProbe.failureThresholdFailure threshold for livenessProbe6
livenessProbe.successThresholdSuccess threshold for livenessProbe1
readinessProbe.enabledEnable readinessProbetrue
readinessProbe.initialDelaySecondsInitial delay seconds for readinessProbe30
readinessProbe.periodSecondsPeriod seconds for readinessProbe10
readinessProbe.timeoutSecondsTimeout seconds for readinessProbe5
readinessProbe.failureThresholdFailure threshold for readinessProbe6
readinessProbe.successThresholdSuccess threshold for readinessProbe1
customLivenessProbeCustom livenessProbe that overrides the default one{}
customReadinessProbeCustom readinessProbe that overrides the default one{}

Shopware Task Runner deployment parameters

| Name | Description

Deploy shopware with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has shopware on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartshopware is pinned at v2.0.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply