zkt24/z2
2024-04-25 16:35:23 +00:00
..
create.php Subir archivos a 'z2' 2024-04-25 16:35:23 +00:00
database.php Subir archivos a 'z2' 2024-04-25 16:35:23 +00:00
delete.php Subir archivos a 'z2' 2024-04-25 16:35:23 +00:00
Dockerfile Subir archivos a 'z2' 2024-04-25 16:35:23 +00:00
edit.php Subir archivos a 'z2' 2024-04-25 16:35:23 +00:00
index.php Subir archivos a 'z2' 2024-04-25 16:35:23 +00:00
info.txt Subir archivos a 'z2' 2024-04-25 16:35:23 +00:00
mysql-service.yaml Subir archivos a 'z2' 2024-04-25 16:35:23 +00:00
mysql-statefulset.yaml Subir archivos a 'z2' 2024-04-25 16:35:23 +00:00
php-deployment.yaml Subir archivos a 'z2' 2024-04-25 16:35:23 +00:00
php-service.yaml Subir archivos a 'z2' 2024-04-25 16:35:23 +00:00
prepare-app.sh Subir archivos a 'z2' 2024-04-25 16:35:23 +00:00
prepare-sql.sh Subir archivos a 'z2' 2024-04-25 16:35:23 +00:00
README.md Subir archivos a 'z2' 2024-04-25 16:35:23 +00:00
script.js Subir archivos a 'z2' 2024-04-25 16:35:23 +00:00
script.sql Subir archivos a 'z2' 2024-04-25 16:35:23 +00:00
secret-sql-password.yaml Subir archivos a 'z2' 2024-04-25 16:35:23 +00:00
start-app.sh Subir archivos a 'z2' 2024-04-25 16:35:23 +00:00
stop-app.sh Subir archivos a 'z2' 2024-04-25 16:35:23 +00:00
styles.css Subir archivos a 'z2' 2024-04-25 16:35:23 +00:00

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