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: 8080
hostPort: 8080
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
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 8080;
listen [::]:8080 ipv6only=on;
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;
}
}
---
apiVersion: v1
kind: Service
metadata:
name: mycelium-website-service
spec:
type: NodePort
ports:
- port: 8080
targetPort: 8080
nodePort: 30090
protocol: TCP
selector:
app: mycelium-website