I will scream
This commit is contained in:
+18
-1
@@ -5,10 +5,19 @@ set -euo pipefail;
|
||||
# cluster + ingress addons (nginx + ingress-dns)
|
||||
# https://kubernetes.io/docs/tasks/access-application-cluster/ingress-minikube/
|
||||
# https://minikube.sigs.k8s.io/docs/handbook/addons/ingress-dns/
|
||||
minikube start --driver=docker || true;
|
||||
# NOTE: publish ports 80/443 from the node to the host when using Docker driver
|
||||
minikube start --driver=docker --cni=cilium --ports=80:80,443:443;
|
||||
minikube addons enable ingress;
|
||||
minikube addons enable ingress-dns;
|
||||
|
||||
# wait for Cilium (if present) and ingress controller to become Ready
|
||||
kubectl -n kube-system rollout status ds/cilium --timeout=180s || echo "WARN: cilium DaemonSet not found or not Ready yet";
|
||||
if kubectl -n ingress-nginx get ds/ingress-nginx-controller >/dev/null 2>&1; then
|
||||
kubectl -n ingress-nginx rollout status ds/ingress-nginx-controller --timeout=180s || true;
|
||||
else
|
||||
kubectl -n ingress-nginx rollout status deploy/ingress-nginx-controller --timeout=180s || true;
|
||||
fi
|
||||
|
||||
# namespaces
|
||||
kubectl create namespace argocd --dry-run=client -o yaml | kubectl apply -f -;
|
||||
kubectl create namespace ai --dry-run=client -o yaml | kubectl apply -f -;
|
||||
@@ -32,6 +41,14 @@ echo "DEBUG: writing pods to 'tmp/pods.txt'"
|
||||
mkdir -p tmp || ""
|
||||
kubectl get pod -o wide --all-namespaces > tmp/pods.txt
|
||||
|
||||
# quick ingress test hint
|
||||
MINIKUBE_IP=$(minikube ip || echo "<minikube-ip>")
|
||||
echo "";
|
||||
echo "To test ingress locally (without DNS), run:";
|
||||
echo " curl -H 'Host: openwebui.local' http://$MINIKUBE_IP/";
|
||||
echo "If name doesn't resolve on your host, add to /etc/hosts:";
|
||||
echo " sudo sh -c 'echo \"$MINIKUBE_IP openwebui.local\" >> /etc/hosts'";
|
||||
|
||||
# port-forward argocd ui
|
||||
echo "";
|
||||
echo "argocd initial admin password (username 'admin'):";
|
||||
|
||||
Reference in New Issue
Block a user