WELCOME Magento 2 on Kubernetes RzvanMarian Avramescu nordicwebteam
WELCOME Magento 2 on Kubernetes Răzvan-Marian Avramescu nordicwebteam. se #mage 2 kube
TABLE OF CONTENTS Intro What is Kubernetes? How we use it Introducing Helm Project requirements Install project Results Even more fun Who is using it
INTRO Mage 2 Kube (Pre. Alpha) Dev. Box (Beta)
WHAT IS KUBERNETES? Open-source system for container orchestration and more. What is Kubernetes? Works with many cloud providers (Google Cloud, AWS, etc) and bare metal.
HOW WE USE IT How we use it in pre-alpha version
HOW WE USE IT Internet DEPLOYER SVC / EXT SSL PROXY SVC/ EXT VARNISH SVC/ INT DEPLOYMENT (POD) SERVIC E SVC/ INT NGINX + FPM SVC / INT REDIS SVC / INT NFS SVC / INT CRON NGINX + FPM … SQL PROXY NGINX + FPM
INTRODUCING HELM It’s a tool for managing Kubernetes charts. Introducing Helm Charts are packages of pre-configured Kubernetes resources.
PROJECT REQUIREMENTS { kubernetes repo (kubectl) } Project requirements { helm } { gcloud (alpha + beta components) } { gnu-sed (mac-only) }
INSTALL PROJECT Install project A public example: https: //github. com/kubernetes/charts/tree/master/stable/magento
INSTALL PROJECT Deployment example
INSTALL PROJECT Service example
INSTALL PROJECT # create cluster from Kubernetes repo cluster/kube-up. sh Amazingly fast # install HELM project helm init #from project folder helm install -name m 2 -nwt magento/
RESULTS Results
EVEN MORE FUN AUTO gcloud alpha container clusters update m 2 -nwt --enable-autoscaling --min-nodes=3 --max-nodes=6 kubectl autoscale deployment m 2 -nwt-web --cpu-percent=60 --min=3 --max=6 Even more fun: MANUAL gcloud container clusters resize m 2 -nwt --size 3 kubectl scale deployment m 2 -nwt-web --replicas=3
WHO IS USING IT Who is using it https: //m 2 -nwt. nwtlab. com
THANK YOU Thank you!
- Slides: 16