magento

by joaquinito2051

Helm chartv21.1.6App 2.4.5

Magento is a powerful open source e-commerce platform. With easy customizations and rich features, it allows retailers to grow their online businesses in a cost-effective way.

About this chart

Magento packaged by Bitnami

Magento is a powerful open source e-commerce platform. With easy customizations and rich features, it allows retailers to grow their online businesses in a cost-effective way.

Overview of Magento

Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.

Azure-ready Charts with Containers from marketplace.azurecr.io

This Helm Chart has been configured to pull the Container Images from the Azure Marketplace Public Repository. The following command allows you to download and install all the charts from this repository.

$ helm repo add bitnami-azure https://marketplace.azurecr.io/helm/v1/repo

TL;DR

$ helm repo add my-repo https://charts.bitnami.com/bitnami
$ helm install my-release my-repo/magento

Introduction

This chart bootstraps a Magento 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 as a database for the Magento application.

Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters.

Prerequisites

  • Kubernetes 1.19+
  • Helm 3.2.0+
  • PV provisioner support in the underlying infrastructure
  • ReadWriteMany volumes for deployment scaling

Installing the Chart

To install the chart with the release name my-release:

$ helm install my-release my-repo/magento

The command deploys Magento 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 my-release deployment:

$ helm delete my-release

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
kubeVersionForce target Kubernetes version (using Helm capabilities if not set)""
nameOverrideString to partially override magento.fullname template""
fullnameOverrideString to fully override magento.fullname template""
namespaceOverrideString to fully override common.names.namespace""
commonAnnotationsAnnotations to add to all deployed objects{}
commonLabelsLabels to add to all deployed objects{}
extraDeployArray of extra objects to deploy with the release (evaluated as a template).[]
diagnosticMode.enabledEnable diagnostic mode (all probes will be disabled and the command will be overridden)false
diagnosticMode.commandCommand to override all containers in the deployment["sleep"]
diagnosticMode.argsArgs to override all containers in the deployment["infinity"]

Magento parameters

NameDescriptionValue
image.registryMagento image registrydocker.io
image.repositoryMagento image repositorybitnami/magento
image.tagMagento image tag (immutable tags are recommended)2.4.5-debian-11-r21
image.digestMagento image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag""
image.pullPolicyMagento image pull policyIfNotPresent
image.pullSecretsSpecify docker-registry secret names as an array[]
image.debugSpecify if debug logs should be enabledfalse
hostAliasesAdd deployment host aliases[]
replicaCountNumber of Magento Pods to run1
magentoSkipInstallSkip Magento installation wizard. Useful for migrations and restoring from SQL dumpfalse
magentoHostMagento host to create application URLs""
magentoUsernameUser of the applicationuser
magentoPasswordApplication password""
magentoEmailAdmin email[email protected]
magentoFirstNameMagento Admin First Name""
magentoLastNameMagento Admin Last Name""
magentoAdminUriMagento prefix to access Magento Admin""
magentoModeMagento mode""
magentoExtraInstallArgsMagento extra install args""
magentoDeployStaticContentDeploy static content during the first deployment, to optimize page load timefalse
magentoUseHttpsUse SSL to access the Magento Store. Valid values: true, falsefalse
magentoUseSecureAdminUse SSL to access the Magento Admin. Valid values: true, falsefalse
magentoSkipReindexSkip Magento Indexer reindex step during the initialization. Valid values: true, falsefalse
allowEmptyPasswordAllow DB blank passwordsfalse
commandOverride default container command (useful when using custom images)[]
argsOverride default container args (useful when using custom images)[]
updateStrategy.typeUpdate strategy - only really applicable for deployments with RWO PVs attachedRollingUpdate
extraEnvVarsExtra environment variables[]
extraEnvVarsCMConfigMap containing extra env vars""
extraEnvVarsSecretSecret containing extra env vars (in case of sensitive data)""
extraVolumesArray of extra volumes to be added to the deployment (evaluated as template). Requires setting extraVolumeMounts[]
extraVolumeMountsArray of extra volume mounts to be added to the container (evaluated as template). Normally used with extraVolumes[]
extraContainerPortsArray of additional container ports for the Magento container[]
initContainersAdd additional init containers to the pod (evaluated as a template)[]
sidecarsAttach additional containers to the pod (evaluated as a template)[]
tolerationsTolerations for pod assignment[]
priorityClassName%%MAIN_CONTAINER_NAME%% pods' priorityClassName""
schedulerNameName of the k8s scheduler (other than default)""
terminationGracePeriodSecondsIn seconds, time the given to the %%MAIN_CONTAINER_NAME%% pod needs to terminate gracefully""
topologySpreadConstraintsTopology Spread Constraints for pod assignment[]
existingSecretName of a secret with the application password""
containerPortsContainer ports{}
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`

Deploy magento with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has magento 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 chartmagento is pinned at v21.1.6 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