Skip to content

hershkoy/magento2-on-kubernetes

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Todo: move the composer install to the build stage.

============================================================= Magento 2 on kubernetes

This is a companion repository for our Magento 2 on Kubernetes blog post.

Here you will find all manifests discussed in the article as well as everything else you need to deploy Magento 2 on Kubernetes yourself.

Prerequisites

  • Minikube or a Kubernetes cluster with NGINX Ingress controller and storage provisioning
  • kubectl configured with the proper context
  • Standalone version of kustomize
  • make

Deployment

Manifests in this repository can be deployed using make.

Starting a Minikube cluster with desired capabilities and addons, downloading external dependencies, and deploying manifests with kustomize are all automated in the Makefile.

# Start a Minikube cluster
make minikube

# Deploy a minimal Magento 2 configuration
make step-1

# Deploy step-1 with Elasticsearch (using Elastic Cloud on Kubernetes)
make step-2

# Deploy step-2 with Redis for cache and session storage and
# HorizontalPodAutoscalers controlling NGINX and PHP-FPM deployments
make step-3

# Deploy step-3 with Varnish
make step-4

About

Configuration to deploy Magento 2 in a Kubernetes cluster

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 47.3%
  • Shell 27.1%
  • VCL 13.1%
  • Dockerfile 10.0%
  • Makefile 2.5%