You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Saez Arana 82401ec37f Subir archivos a 'z2' 3 weeks ago
..
Dockerfile Subir archivos a 'z2' 3 weeks ago
README.md Subir archivos a 'z2' 3 weeks ago
create.php Subir archivos a 'z2' 3 weeks ago
database.php Subir archivos a 'z2' 3 weeks ago
delete.php Subir archivos a 'z2' 3 weeks ago
edit.php Subir archivos a 'z2' 3 weeks ago
index.php Subir archivos a 'z2' 3 weeks ago
info.txt Subir archivos a 'z2' 3 weeks ago
mysql-service.yaml Subir archivos a 'z2' 3 weeks ago
mysql-statefulset.yaml Subir archivos a 'z2' 3 weeks ago
php-deployment.yaml Subir archivos a 'z2' 3 weeks ago
php-service.yaml Subir archivos a 'z2' 3 weeks ago
prepare-app.sh Subir archivos a 'z2' 3 weeks ago
prepare-sql.sh Subir archivos a 'z2' 3 weeks ago
script.js Subir archivos a 'z2' 3 weeks ago
script.sql Subir archivos a 'z2' 3 weeks ago
secret-sql-password.yaml Subir archivos a 'z2' 3 weeks ago
start-app.sh Subir archivos a 'z2' 3 weeks ago
stop-app.sh Subir archivos a 'z2' 3 weeks ago
styles.css Subir archivos a 'z2' 3 weeks ago

README.md

Notes Manager Application

This is a simple notes management application developed with php and sql and deployed in kubernetes that allows you to create, read, update, and delete notes easily and efficiently.

Key features

  • Create Notes: You can create new notes by specifying a title and content.
  • List Notes: View all existing notes in the application.
  • Update Notes: Modify the title or content of an existing note.
  • Delete Notes: Remove notes that are no longer needed.

Technologies Used

  • Backend: php container
  • Frontend: HTML,CSS
  • Database: mysql container e
  • Containers: Docker
  • Container Orchestrator: Kubernetes

Docker images and kubernetes object

  • Images:

    • php from -> rafasaez/php-sql-app image
    • sql from -> rafasaez/sql-app images
  • kubernetes yaml(Inside kubernetes directory):

    • mysql-service.yaml -> for the service of mysql
    • php-service.yaml -> for the service of php
    • mysqk-statefulset.yaml -> for the statefulset of mysql
    • php-deployment.yaml -> for the deployment of php
    • secret-sql-password -> for the secret object where mysql password is storage

How to run de application

  • Firs you need to install kubernetes on docker
  • Go to docker desktop, go to settings, kubernetes and click on enable kubernetes
  • Open your terminal
  • Run the following
    bash prepare-app.sh
    
  • Once is evry image created run the application
    bash start-app.sh
    
  • Your application should be running on port 8080 in localhost
  • If you want to finish the app just run:
    bash stop-app.sh