An open API service indexing awesome lists of open source software.

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)

Awesome Lists containing this project

README

          

# Kubernetes for Symfony

[![license](https://img.shields.io/github/license/mashape/apistatus.svg?style=flat-square)](LICENSE)
[![contributions](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat-square)](https://github.com/carlosas/kubernetes-for-symfony/issues)
[![HitCount](http://hits.dwyl.com/carlosas/kubernetes-for-symfony.svg)](README.md)

![](doc/schema.png)

---

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
```