Bring Your Own Container
By default, Mappia provisions a Magento 2 store using the most recent Magento 2 release. However, you likely want to run your codebase, not what comes with Magento out of the box.
Mappia's values.yaml provides two keys that you can change to configure Mappia to use your own custom image: magento.cli.image and magento.fpm.image.
magento.fpm.imageprocesses requests from the internetmagento.cli.imageis used by thecronandconsumerpods.
If you're unsure how to build these images, you can follow along with the Build a docker container for my Magento store guide.
TIP
If your image is on a private registry (it likely is), you can provide imagePullSecrets so that your cluster can pull these images.
INFO
If you are using terraform-azure you do not need to provide imagePullSecrets as AKS automatically connects to your ACR.
WARNING
If you're using magento < 2.4.6 you must add this in your composer.json to avoid caching errors.
{
...
"require": {
"colinmollenhour/cache-backend-redis": "1.14.4 as 1.14.2",
}
...
}