These manifests are used to deploy a LAMP stack on Kubernetes.
git clone https://github.com/alijahnas/lamp-k8s
cd lamp-k8s
# The namespace before everything else
kubectl apply -f manifests/lamp-k8s-namespace.yaml
kubectl apply -f manifests
kubectl get all -n lamp-k8s
We have a deployment of PHP-FPM. Number of instances is configurable through deployment replicas.
We have a deployment of Apache webserver using FastCGI to connect to the PHP-FPM service. Number of instances is configurable through deployment replicas.
We have a deployment of a single MySQL database, with a persistent volume to store the DB.
To access the application, use to get the external IP:
kubectl get svc lamp-apache -n lamp-k8s