#!/bin/bash # Create the namespace kubectl apply -f namespace.yaml # Build the Docker image docker build -t blog-app:latest . # Ensure minikube uses the local image eval $(minikube docker-env) docker build -t blog-app:latest . # Start Minikube if it's not already running if ! minikube status | grep -q "Running"; then minikube start fi echo "Preparation complete. You can now run ./start-app.sh"