#!/bin/bash if command -v minikube &>/dev/null; then echo "==> Minikube detected. Opening service URL..." minikube service notes-web-service -n notes-app --url else NODE_IP=$(kubectl get nodes -o jsonpath='{.items[0].status.addresses[?(@.type=="InternalIP")].address}') echo "==> App available at: http://${NODE_IP}:30080" fi