首次提交:初始化项目
This commit is contained in:
16
009-基础设施/005-ingress/deploy-longhorn-ingress.sh
Normal file
16
009-基础设施/005-ingress/deploy-longhorn-ingress.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/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"
|
||||
Reference in New Issue
Block a user