https://github.com/carlosas/kubernetes-for-symfony
[DEPRECATED] Kubernetes stack for Symfony 2&3 (NGINX / PHP7-FPM / MySQL / Redis / Jenkins)
https://github.com/carlosas/kubernetes-for-symfony
jenkins kubernetes mysql nginx php-fpm redis symfony
Last synced: 8 months ago
JSON representation
[DEPRECATED] Kubernetes stack for Symfony 2&3 (NGINX / PHP7-FPM / MySQL / Redis / Jenkins)
- Host: GitHub
- URL: https://github.com/carlosas/kubernetes-for-symfony
- Owner: carlosas
- License: mit
- Created: 2017-09-07T10:30:11.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-07T18:35:24.000Z (almost 8 years ago)
- Last Synced: 2025-03-27T23:23:40.581Z (9 months ago)
- Topics: jenkins, kubernetes, mysql, nginx, php-fpm, redis, symfony
- Language: Shell
- Homepage:
- Size: 118 KB
- Stars: 20
- Watchers: 7
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Kubernetes for Symfony
[](LICENSE)
[](https://github.com/carlosas/kubernetes-for-symfony/issues)
[](README.md)

---
WARNING :warning: **This project is no longer maintained (for now)**
---
## Introduction
This stack is a starting point for building a distributed and scalable stack with Kubernetes. It runs locally with Minikube, but it can be modified to use AWS or GCE. Any contribution in this direction would be appreciated.
## Quick guide
### Requirements
* kubectl https://kubernetes.io/docs/tasks/tools/install-kubectl/
* minikube https://kubernetes.io/docs/tasks/tools/install-minikube/
### Usage
#### Build and start the stack:
* Define your passwords in *kubernetes/secrets.yaml*, encrypted in base64:
```sh
echo -n "MYPASSWORD" | base64
```
> For Jenkins encrypt: `--argumentsRealm.passwd.jenkins=MYPASSWORD --argumentsRealm.roles.jenkins=admin`
* Start the stack
```sh
./scripts/start-and-create.sh
```
* Create local persistent volumes
```sh
./scripts/create-persistent-volumes.sh
```
* Clone your repository into the stack *(set 'mysql' as database host)*
```sh
./scripts/clone-my-repository.sh
```
#### Clean up and stop the stack:
```sh
./scripts/stop-and-delete.sh
```