GithubHelp home page GithubHelp logo

elorchi / ft_services Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cclaude42/ft_services

1.0 0.0 0.0 13.75 MB

42 - Building a Kubernetes cluster using minikube

Shell 8.15% PHP 9.23% Dockerfile 5.42% HTML 77.20%

ft_services's Introduction

ft_services

42 project, setup of a Kubernetes cluster. Services include an nginx, an FTPS, a Wordpress and a PHPMyAdmin working with a MySQL database, and a Grafana linked to an InfluxDB database for monitoring. The script builds the custom Docker images for each of those, before deploying and exposing them all with custom yaml files.

Final grade : 100/100

Mandatory part : 100/100

How to use it

Simply run the setup script :

./setup.sh

Run it again once it's installed the requirements.

Outside the VM

This project is meant to run is the 42 xubuntu VM. Running it anywhere else would cause problems, because of the VM setup. If you want to run it anywhere else, install the requirements (minikube, kubectl, docker...) yourself and run :

./setup.sh x

Available options

You can run the script with a few options, if you only want certain things.

For example, ./setup.sh minikube img will only setup minikube and build images.

./setup.sh nginx would build, deploy and expose nginx only (careful, minikube needs to be set up). Useful to reset certain containers without resetting everything.

Following that logic, ./setup.sh vm minikube img dep svc or ./setup.sh vm minikube nginx wordpress mysql phpmyadmin ftps grafana influxdb do the same as ./setup.sh.

Credit

Thank you to macrespo, darbib and lnezonde, who helped me understand any and all of this. Without them, I'd probably still be searching Google to understand what a server is.

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.