Files
k3s/009-基础设施/005-ingress/deploy-longhorn-ingress.sh
2026-02-05 00:11:05 +08:00

17 lines
361 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
# 应用 Longhorn Ingress
echo "创建 Longhorn Ingress..."
kubectl apply -f longhorn-ingress.yaml
# 显示 Ingress 状态
echo ""
echo "Ingress 状态:"
kubectl get ingress -n longhorn-system
echo ""
echo "访问 Longhorn UI"
echo " URL: http://longhorn.local"
echo " 需要在 /etc/hosts 中添加:"
echo " <节点IP> longhorn.local"