Actualiser README.md
This commit is contained in:
parent
a465459911
commit
05ab046b3d
55
README.md
55
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
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user