Update nginx-mycelium docs with clarified update-content.sh usage and deployment fixes

This commit is contained in:
mik-tf
2025-11-05 19:11:55 -05:00
parent ec9d6ecdcc
commit 3dd96d036b
2 changed files with 22 additions and 5 deletions

View File

@@ -29,9 +29,8 @@ kubectl apply -f mycelium-website-hostnetwork.yaml
kubectl wait --for=condition=ready pod -l app=mycelium-website --timeout=60s
# 3. Get the IPv6 address of the pod
POD_IP=$(kubectl get pod -l app=mycelium-website -o jsonpath='{.items[0].status.podIP}')
NODE_IP=$(kubectl get pod -l app=mycelium-website -o jsonpath='{.items[0].spec.nodeName}')
MYCELIUM_IP=$(kubectl get node $NODE_IP -o jsonpath='{.status.addresses[?(@.type=="InternalIP")].address}')
NODE_NAME=$(kubectl get pod -l app=mycelium-website -o jsonpath='{.items[0].spec.nodeName}')
MYCELIUM_IP=$(kubectl get node $NODE_NAME -o jsonpath='{.status.addresses[?(@.type=="InternalIP")].address}')
echo "Website accessible at: http://[$MYCELIUM_IP]:80"
@@ -41,6 +40,21 @@ curl http://[476:c4f:b4cb:7205:ff0f:f56e:abea:6905]:80
curl http://[552:5984:2d97:72dc:ff0f:39ef:6ec:a48c]:80
```
**🔄 Optional: Update Content with Dynamic IPv6 Discovery**
The `update-content.sh` script can be used to regenerate content with current IPv6 addresses:
```bash
# Run to update content with current cluster IPv6 addresses
./update-content.sh
# This will:
# 1. Discover current Mycelium IPv6 addresses
# 2. Regenerate website content with IPv6 information
# 3. Update the ConfigMap with new content
# 4. Trigger pod update with new content
```
## 🌍 Global Access URLs
Once deployed, your website is **globally accessible** at all Mycelium IPv6 addresses on port 80: