10 lines
335 B
Bash
10 lines
335 B
Bash
#!/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
|