#!/usr/bin/env bash set -e echo "Deploying Notes App to Kubernetes..." kubectl apply -f k8s/namespace.yaml kubectl apply -f k8s/configmap.yaml kubectl apply -f k8s/statefulset.yaml kubectl apply -f k8s/service.yaml kubectl apply -f k8s/deployment.yaml echo "Waiting for pods to be ready..." kubectl wait --namespace notes-app --for=condition=ready pod --all --timeout=120s echo "App is running." echo "Frontend: http://localhost:30080" echo "Adminer: http://localhost:30081"