diff --git a/README.md b/README.md index 638f210..b39d292 100644 --- a/README.md +++ b/README.md @@ -44,52 +44,25 @@ Run the following script to prepare the application, build the Docker image, and ```bash ./prepare-app.sh ``` +### Start the Application +Run the following script to create all Kubernetes objects and start the application: +``` +./start-app.sh +``` +### Stop the Application -# Web Application Deployment to Kubernetes - -## Description - -This project deploys a web application to Kubernetes. - -## Containers Used - -- **web-app-container**: A container running a Node.js application. - -## Kubernetes Objects - -- **Namespace**: `my-namespace` -- **Deployment**: `web-app-deployment` -- **StatefulSet**: `web-app-statefulset` -- **Service**: `web-app-service` -- **PersistentVolume**: `pv-volume` -- **PersistentVolumeClaim**: `pvc-claim` - -## Virtual Networks and Named Volumes - -- The application uses a PersistentVolume and PersistentVolumeClaim to store data. -- The Service exposes the application on port 80. - -## Container Configuration - -- The Dockerfile builds a Node.js application and exposes port 8080. -- The Deployment and StatefulSet use the image `my-web-app:latest`. - -## Instructions - -### Prepare the Application - -1. Run the `prepare-app.sh` script to build the Docker image and create the namespace and persistent volumes. +Run the following script to delete all created Kubernetes objects and stop the application: ```bash -./prepare-app.sh``` - -###2. Create the Namespace - -```bash -kubectl apply -f namespace.yaml``` - +./stop-app.sh +``` +### View the Application +If you are using a LoadBalancer service, you can access the application using the external IP address provided by the service. Run the following command to get the service details: +``` +kubectl get services -n my-namespace +```