Skip to content

Template for deploying Laravel application with Kubernetes

License

Notifications You must be signed in to change notification settings

husseinferas/larak8s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Larak8s

Template for deploying Laravel application with Kubernetes



Requirements

  • Kubernetes Cluster (minikube, kubeadm, EKS, AKS, GKE, ...).
  • Kubectl connected with the cluster and ready.
  • Storage class and PV storage.

Usage

  • Clone this repo:
git clone https://github.com/husseinferas/larak8s && cd  larak8s
  • Create new namespace :
kubectl create namespace larak8s
  • Deploy your project :
kubectl apply -k .
  • Delete the project :
kubectl delete -k .

Customization

  • Customized your laravel image:
    inside app/deployment
...
      containers:
      - name: laravel
        image: <YOUR_IMAGE>
        ports:
        - containerPort: 80
...
  • Customized your namespace:
    you can find and replace the default namespace larak8s with your namespace
...
metadata:
  namespace: <YOUR_NAMESPACE>
  name: laravel
...
  • Further Customization:
    you can customize anything you want in all the resources

  • Note don't forget to apply your changes
kubectl apply -k .

Contributing

Pull requests are welcome. For major changes.

License

Larak8s is licensed under the terms of the MIT License (See LICENSE file for details).

About

Template for deploying Laravel application with Kubernetes

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published