#!/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"