#!/bin/bash # Build the Docker image docker build -t my-web-app:latest . # Create the namespace kubectl create namespace my-namespace # Apply the PersistentVolume and PersistentVolumeClaim kubectl apply -f statefulset.yaml