Code Monkey home page Code Monkey logo

ft_services's Introduction

ft_services

"Summary: This is a System Administration and Networking project."

enter image description here

Final grade: 100% (maximum grade)

Description:

The project consists of setting up an infrastructure of different services.

To do this, we must use Kubernetes.

We have to to set up a multi-service cluster.

Each service have to run in a dedicated container.

For performance reasons, containers are built using Alpine Linux.

For pedagogical reasons, it is forbidden to take already built images or use services like DockerHub.

The services required were:

  • The kubernetes web dashboard
  • A WordPress website listening on port 5050, which will work with a MySQL database in separate containers.
  • phpMyAdmin, listening on port 5000 and linked with the MySQL database
  • An nginx server listening on ports 80 and 443.

This container allows access to a /wordpress route that makes a redirect 307.

It also allows access to /phpmyadmin with a reverse proxy.

  • A FTPS server listening on port 21.
  • A Grafana platform, listening on port 3000, linked with an InfluxDB database that monitors all containers, with a dashboard for each one.
  • Livenessprobe (automatic restart of individual services in case of failure)
  • A bare-metal Load balancer (MetalLB) that is the only entrypoint for the Cluster.

Usage

Setup the entire cluster:

./setup.sh

Redeploy one or multiple services:

./setup.sh redeploy [service] ...

Open a shell in one of the containers:

./setup.sh shell [service]

Kill a pod:

./setup.sh kill [service]

Launch a stress test on one or multiple services:

./setup.sh stress [service] ...

Default credentials:

Default credentials for most services are:

username: anclarma

password: anclarma

For grafana the credentials are:

username: admin

password: admin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.