Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 770 Bytes

README.md

File metadata and controls

24 lines (19 loc) · 770 Bytes

Description

These manifests are used to deploy a LAMP stack on Kubernetes.

TL;DR

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

More description

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