Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Rishats/laravel-kubernetes-demo
Simple laravel K8S configs [DEVELOPMENT]
https://github.com/Rishats/laravel-kubernetes-demo
Last synced: 8 days ago
JSON representation
Simple laravel K8S configs [DEVELOPMENT]
- Host: GitHub
- URL: https://github.com/Rishats/laravel-kubernetes-demo
- Owner: Rishats
- License: mit
- Created: 2020-05-03T12:17:58.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-11T07:29:09.000Z (over 4 years ago)
- Last Synced: 2024-08-01T13:29:35.197Z (3 months ago)
- Language: PHP
- Size: 403 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Laravel Kubernetes Demo Application
A simple Laravel Demo Application for a Kubernetes Tutorial.
This application is a simple stateless Laravel installation for learning how to deploy a PHP application to Kubernetes.
## Installation
This application is nothing more than a simple stateless Laravel installation. However if you wish to install it, simply follow these steps:
__Clone the repository__
`git clone [email protected]:Rishats/laravel-kubernetes-demo.git`
__Go to new folder__
`cd laravel-kubernetes-demo`
__Building a Docker image__
`docker build -t yourname/laravel-kubernetes-demo .`
## Apply all
__Apply all K8S files:__
`kubectl apply -f k8s -R`
## Custom apply
__Deploy a container image to K8S:__
`kubectl apply -f k8s/laravel/deployment.yaml`
__Create a service for K8S:__
`kubectl apply -f k8s/laravel/services.yaml`
__Create a ingress for K8S:__
`kubectl apply -f k8s/laravel/ingress.yaml`
__Create a hpa-rsa for K8S(optional):__
`kubectl apply -f k8s/controllers/laravel/hpa-rs.yaml`
## License
The Laravel framework and this demo are open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).