#!/bin/bash # Build the Docker image for the application docker build -t elineen/todo-app:latest . # Push the Docker image to Docker Hub docker push elineen/todo-app:latest # Create the namespace kubectl apply -f namespace.yaml # Apply the Database Deployment kubectl apply -f db-deployment.yaml # Apply the Database Service kubectl apply -f db-service.yaml # Apply the StatefulSet (which includes PersistentVolume and PersistentVolumeClaim) kubectl apply -f statefulset.yaml