From ec9d6ecdcce24bba555908e92baaf7cb9e940dc3 Mon Sep 17 00:00:00 2001 From: mik-tf Date: Wed, 5 Nov 2025 19:09:27 -0500 Subject: [PATCH] Add mycelium-website-hostnetwork.yaml deployment file --- .../mycelium-website-hostnetwork.yaml | 193 ++++++++++++++++++ 1 file changed, 193 insertions(+) create mode 100644 examples/nginx-mycelium/mycelium-website-hostnetwork.yaml diff --git a/examples/nginx-mycelium/mycelium-website-hostnetwork.yaml b/examples/nginx-mycelium/mycelium-website-hostnetwork.yaml new file mode 100644 index 0000000..00477a8 --- /dev/null +++ b/examples/nginx-mycelium/mycelium-website-hostnetwork.yaml @@ -0,0 +1,193 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: mycelium-website + labels: + app: mycelium-website +spec: + replicas: 1 + selector: + matchLabels: + app: mycelium-website + template: + metadata: + labels: + app: mycelium-website + spec: + hostNetwork: true + dnsPolicy: ClusterFirst + containers: + - name: nginx + image: nginx:alpine + ports: + - containerPort: 80 + hostPort: 80 + volumeMounts: + - name: html-content + mountPath: /usr/share/nginx/html + - name: nginx-config + mountPath: /etc/nginx/conf.d + volumes: + - name: html-content + configMap: + name: mycelium-website-content + - name: nginx-config + configMap: + name: mycelium-nginx-config +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: mycelium-website-content +data: + index.html: | + + + + + + Mycelium Cloud - Globally Accessible Website + + + + +
+

🌐 Mycelium Cloud

+
+ Your website is now globally accessible via IPv6! +
+ +
+ ✅ GLOBAL ACCESSIBLE +
+ +
+ Connected via IPv6:
+ Loading... +
+ +
+

🚀 Key Features:

+
🌍 Peer-to-peer global access without traditional hosting
+
🔒 Secure IPv6-only communications
+
⚡ Direct node-to-node connectivity
+
🖥️ 3-Master, 3-Worker Kubernetes cluster
+
🔄 Dynamic IPv6 discovery and routing
+
+ +
+ Loading timestamp... +
+ +
+ Mycelium Cloud Website Demo
+ Proof of Concept: IPv6 Website Hosting +
+
+ + +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: mycelium-nginx-config +data: + default.conf: | + server { + listen 80; + server_name _; + + location / { + root /usr/share/nginx/html; + index index.html; + try_files $uri $uri/ =404; + } + + location /health { + access_log off; + return 200 "healthy\n"; + add_header Content-Type text/plain; + } + } \ No newline at end of file