kubernetes-for-symfony
kubernetes-for-symfony copied to clipboard
[DEPRECATED] Kubernetes stack for Symfony 2&3 (NGINX / PHP7-FPM / MySQL / Redis / Jenkins)
Kubernetes for Symfony
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:
echo -n "MYPASSWORD" | base64
For Jenkins encrypt:
--argumentsRealm.passwd.jenkins=MYPASSWORD --argumentsRealm.roles.jenkins=admin
- Start the stack
./scripts/start-and-create.sh
- Create local persistent volumes
./scripts/create-persistent-volumes.sh
- Clone your repository into the stack (set 'mysql' as database host)
./scripts/clone-my-repository.sh
Clean up and stop the stack:
./scripts/stop-and-delete.sh