Skip to content

Laravel + Kubernetes starter template

Notifications You must be signed in to change notification settings

axelerant/laravel-k8s-starter

Repository files navigation

Laravel Logo

Kubernetes Logo

This template will help you with Laravel application deployment using Kubernetes. Refer the chart directory for more details.

Installation

minikube start
eval $(minikube -p minikube docker-env)
docker build . --tag=ci-k8s
export DB_ROOT_PASSWORD=rootpass DB_NAME=db DB_USER=main DB_PASSWORD=password API_KEY=samplekey
helm install --set dbRootPassword=$DB_ROOT_PASSWORD --set dbName=$DB_NAME --set dbUser=$DB_USER --set dbPassword=$DB_PASSWORD --set apiKey=$API_KEY laravel-k8s chart/
minikube tunnel

Verify

minikube dashboard
curl -v http://localhost/

Languages