https://github.com/dignajar/revolut-challenge
Revolut challenge for DevOps
https://github.com/dignajar/revolut-challenge
Last synced: 11 months ago
JSON representation
Revolut challenge for DevOps
- Host: GitHub
- URL: https://github.com/dignajar/revolut-challenge
- Owner: dignajar
- Created: 2019-01-18T13:25:16.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-18T13:27:07.000Z (over 7 years ago)
- Last Synced: 2025-03-14T06:30:44.123Z (over 1 year ago)
- Language: PHP
- Homepage:
- Size: 169 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Revolut Challenge
## Technologies
- Amazon AWS
- AWS Route53 for DNS
- AWS EC2 Load Balancer
- AWS EC2 instances
- AWS EC2 Auto-scaling
- AWS RDS for database
- Docker for containers
- Kubernetes for orchestration of containers
- Private Docker registry
- API made in PHP
## Pre-requirements
- Kubernetes running
- Docker registry running. Endpoint `docker.registry.com`
- RDS PostgreSQL master and slave
- Database with a table
```
CREATE TABLE users(
username VARCHAR (100) UNIQUE NOT NULL,
dateOfBirth TIMESTAMP NOT NULL
);
```
## Installation
Create the Docker image and push to your Docker registry.
```
$ cd app
$ docker build -t docker.registry.com/hello:1.0.0 .
$ docker push docker.registry.com/hello:1.0.0
```
Deploy all descriptors files to Kubernetes.
```
$ cd k8s
$ kubectl apply -f *
```
## Infrastructure diagram
