Hello World! Excuse the pun… jump on board with me on this journey and we will learn how to setup and deploy a micro-services architecture using Kubernetes, Laravel Lumen and Skaffold.
First off, let’s create an empty directory with git initialised, this will be our project working folder, I am running on Ubuntu so I would run something similar to the following command:
mkdir ~/projects/php-and-k8s/ && git init ~/projects/php-and-k8s
Next up let’s create some kind of directory structure to hold our services and Kubernetes manifests.
Go ahead and create the folder structure:
--
-- services/
-- manifests/
Now lets create…
I was un-marshalling some JSON data onto my class and realised we could use PHP 8 attributes to make it cleaner and more easier to use.
Let me walk you through a quick example, imagine you have some JSON data:
{
"airline": "Foo Airlines",
"aircraft": {
"type": "Boeing 747"
},
"route": [
{
"sequence": 1,
"cost": 50.25,
"luggageIncluded": true,
"airline": "Foo Airlines",
"departureAirport": "London Gatwick",
"arrivalAirport": "Malta International"
},
{
"sequence": 2,
"cost": 20.25,
"luggageIncluded": true,
"airline": "Foo Airlines",
"departureAirport": "Malta International",
"arrivalAirport": "London Gatwick"
}
]
}
The above data represents a flight departing from London Gatwick to Malta…
Hey everyone! 👋 In my first story I guided you through building and deploying a Laravel Lumen application in a micro-services architecture using Kubernetes, Skaffold and Minikube for local testing.
Today we are going to take a deeper dive into a Kubernetes Deployment manifest and explore the following topics:
This guide assumes you are familiar with the basics of Kubernetes and Minikube, there will be a chance in each section to participate and run commands against your local cluster, however, you are not required.
Let’s kick off with…
Experienced Full-stack Developer | PHP | Kubernetes | Go | DevOps | AWS | Google Cloud