#!/usr/bin/env bash
set -euo pipefail

BASE_DIR="$(cd "$(dirname "$0")" && pwd)"
MANIFESTS="$BASE_DIR/manifests"

echo "🚀 部署 Adminer..."

kubectl apply -f "$MANIFESTS/"

echo "⏳ 等待 Pod 就緒..."
kubectl rollout status deployment/adminer --timeout=120s

echo "✅ Adminer 部署完成"
