Skip to content

PennyBlack2008/42_Ft_service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Ft_service

This is a System Administration and Networking project with Kubernetes.

The project consists of setting up an infrastructure of different services(Grafana, WordPress, PhpMyadmin and so on).

Project diagram

Getting started

1. Install Docker Desktop.

https://www.docker.com/get-started

2. Enable single-node cluster on your local system.

docker > preferences > Kubernetes > Enable Kubernetes > Apply & Restart	

reference : https://docs.docker.com/docker-for-mac/#kubernetes

3. Clone this repository.

git clone https://github.com/pennyblack2008/ft_services.git
cd ft_services

4. Select which ethernet you are going to use.

# Search with 'ifconfig'
# default 'en0', if you want to change en1, type below
sed -i "" "s/en0/en1/g" setup.sh

5. Execute setup.sh

./setup.sh

TEST

Nginx

Test with safari(private browsing).

FTPS

Test with curl or filezilla.

  • TLS
  • upload
  • download

WordPress, MySQL and PhpMyAdmin

Test with safari(private browsing).

  • Write comments.
  • Check wp_comments table with PhpMyAdmin.
  • Delete MySQL pod and check comments are still exist.

Grafana and influxDB

Test with safari(private browsing).

  • Check Grafana is monitoring all containers with dashboard.
  • Delete influxDB pod and check data is still exist.

Persistence

Test with terminal.

  • kubectl exec deploy/ftps -- pkill vsftpd
  • kubectl exec deploy/grafana -- pkill grafana
  • kubectl exec deploy/influxdb -- pkill influxd
  • kubectl exec deploy/mysql -- pkill mysqld
  • kubectl exec deploy/nginx -- pkill nginx
  • kubectl exec deploy/phpmyadmin -- pkill nginx
  • kubectl exec deploy/phpmyadmin -- pkill php-fpm
  • kubectl exec deploy/wordpress -- pkill nginx
  • kubectl exec deploy/wordpress -- pkill php-fpm

Peer Evaluation

service_better

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published