11 lines
226 B
Bash
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
|