magento
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.
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
| Name | Description | Value |
|---|---|---|
global.imageRegistry | Global Docker image registry | "" |
global.imagePullSecrets | Global Docker registry secret names as an array | [] |
global.storageClass | Global StorageClass for Persistent Volume(s) | "" |
Common parameters
| Name | Description | Value |
|---|---|---|
kubeVersion | Force target Kubernetes version (using Helm capabilities if not set) | "" |
nameOverride | String to partially override magento.fullname template | "" |
fullnameOverride | String to fully override magento.fullname template | "" |
namespaceOverride | String to fully override common.names.namespace | "" |
commonAnnotations | Annotations to add to all deployed objects | {} |
commonLabels | Labels to add to all deployed objects | {} |
extraDeploy | Array of extra objects to deploy with the release (evaluated as a template). | [] |
diagnosticMode.enabled | Enable diagnostic mode (all probes will be disabled and the command will be overridden) | false |
diagnosticMode.command | Command to override all containers in the deployment | ["sleep"] |
diagnosticMode.args | Args to override all containers in the deployment | ["infinity"] |
Magento parameters
| Name | Description | Value |
|---|---|---|
image.registry | Magento image registry | docker.io |
image.repository | Magento image repository | bitnami/magento |
image.tag | Magento image tag (immutable tags are recommended) | 2.4.5-debian-11-r21 |
image.digest | Magento image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag | "" |
image.pullPolicy | Magento image pull policy | IfNotPresent |
image.pullSecrets | Specify docker-registry secret names as an array | [] |
image.debug | Specify if debug logs should be enabled | false |
hostAliases | Add deployment host aliases | [] |
replicaCount | Number of Magento Pods to run | 1 |
magentoSkipInstall | Skip Magento installation wizard. Useful for migrations and restoring from SQL dump | false |
magentoHost | Magento host to create application URLs | "" |
magentoUsername | User of the application | user |
magentoPassword | Application password | "" |
magentoEmail | Admin email | [email protected] |
magentoFirstName | Magento Admin First Name | "" |
magentoLastName | Magento Admin Last Name | "" |
magentoAdminUri | Magento prefix to access Magento Admin | "" |
magentoMode | Magento mode | "" |
magentoExtraInstallArgs | Magento extra install args | "" |
magentoDeployStaticContent | Deploy static content during the first deployment, to optimize page load time | false |
magentoUseHttps | Use SSL to access the Magento Store. Valid values: true, false | false |
magentoUseSecureAdmin | Use SSL to access the Magento Admin. Valid values: true, false | false |
magentoSkipReindex | Skip Magento Indexer reindex step during the initialization. Valid values: true, false | false |
allowEmptyPassword | Allow DB blank passwords | false |
command | Override default container command (useful when using custom images) | [] |
args | Override default container args (useful when using custom images) | [] |
updateStrategy.type | Update strategy - only really applicable for deployments with RWO PVs attached | RollingUpdate |
extraEnvVars | Extra environment variables | [] |
extraEnvVarsCM | ConfigMap containing extra env vars | "" |
extraEnvVarsSecret | Secret containing extra env vars (in case of sensitive data) | "" |
extraVolumes | Array of extra volumes to be added to the deployment (evaluated as template). Requires setting extraVolumeMounts | [] |
extraVolumeMounts | Array of extra volume mounts to be added to the container (evaluated as template). Normally used with extraVolumes | [] |
extraContainerPorts | Array of additional container ports for the Magento container | [] |
initContainers | Add additional init containers to the pod (evaluated as a template) | [] |
sidecars | Attach additional containers to the pod (evaluated as a template) | [] |
tolerations | Tolerations for pod assignment | [] |
priorityClassName | %%MAIN_CONTAINER_NAME%% pods' priorityClassName | "" |
schedulerName | Name of the k8s scheduler (other than default) | "" |
terminationGracePeriodSeconds | In seconds, time the given to the %%MAIN_CONTAINER_NAME%% pod needs to terminate gracefully | "" |
topologySpreadConstraints | Topology Spread Constraints for pod assignment | [] |
existingSecret | Name of a secret with the application password | "" |
containerPorts | Container ports | {} |
podAffinityPreset | Pod affinity preset. Ignored if affinity is set. Allowed values: soft or hard | "" |
podAntiAffinityPreset | Pod anti-affinity preset. Ignored if affinity is set. Allowed values: soft or hard | soft |
nodeAffinityPreset.type | Node affinity preset type. Ignored if affinity is set. Allowed values: soft or hard | "" |
nodeAffinityPreset.key | Node label key to match Ignored if affinity is set. | "" |
nodeAffinityPreset.values | Node label values to match. Ignored if affinity is set. | [] |
affinity | Affinity for pod assignment | {} |
nodeSelector | Node 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartmagento is pinned at v21.1.6 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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