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
|
3 weeks ago | |
---|---|---|
.. | ||
Dockerfile | 3 weeks ago | |
README.md | 3 weeks ago | |
create.php | 3 weeks ago | |
database.php | 3 weeks ago | |
delete.php | 3 weeks ago | |
edit.php | 3 weeks ago | |
index.php | 3 weeks ago | |
info.txt | 3 weeks ago | |
mysql-service.yaml | 3 weeks ago | |
mysql-statefulset.yaml | 3 weeks ago | |
php-deployment.yaml | 3 weeks ago | |
php-service.yaml | 3 weeks ago | |
prepare-app.sh | 3 weeks ago | |
prepare-sql.sh | 3 weeks ago | |
script.js | 3 weeks ago | |
script.sql | 3 weeks ago | |
secret-sql-password.yaml | 3 weeks ago | |
start-app.sh | 3 weeks ago | |
stop-app.sh | 3 weeks ago | |
styles.css | 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