z2/prepare-app.sh
2025-04-15 20:11:51 +00:00

11 lines
226 B
Bash

#!/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