Kubernetes for Laravel Developers
In this video series, I'm going to show you how I wrap a Laravel application in containers to deploy it to a Kubernetes cluster.
Kubernetes can feel cumbersome at times, but it's no denying that it's a really powerful environment for your applications.
You might have heard the benefits of Containers and Kubernetes, but haven't paid close attention to yet. Some people think containers are too hard so they are not worth the effort or that Kubernetes is for microservices. That's not true.
I'm not gonna lie. There's quite a learning curve. But there are a lot of benefits too, like:
- Independency of host/cloud provider;
- Everything runs the same.
Independency of host/cloud provider
Although infrastructure migrations like this a quite hard to do, using a tool like Kubernetes makes the work a bit easier. You can even have a hybrid cloud infrastructure;
Everything runs the same
This is mostly applicable for applications that run different pieces of software. I'm not talking exclusively about microservices here. An application consists of a series of tools combined together to generate some value to either companies or customers. These tools can be microservices, but they can also be other backing services, such as load balancers, a WebSockets app your application uses, or other pieces of infrastructure like an E-mail service.
By adopting containers, you make most things "the same". So you don't have to worry about different release tools, or different build strategies for your toolings. They all of a sudden can share most infrastructure and workflows.
Anyways, I've had to deploy multiple applications to Kubernetes. Even built deployment pipelines using GitOps. So I think I have something to share with you. If you are into Containers or just want to know more about making the most out of Kubernetes for your Laravel applications, this series is for you.