Kubernetes manifests for a public node, and --announce
k8s/base (kustomize): StatefulSet with a volume, p2p LoadBalancer for 4001 TCP+UDP, ClusterIP for the UI, optional ingress; k8s/overlays/nodeport for clusters without a load balancer. The pod waits for 'allmende init' so the recovery phrase never goes to a log. --announce makes a node that sits behind a router or in a container announce the address others can dial (e.g. /dns4/name/tcp/4001), so a bootstrap node behind a port forward works, and the DNS records it prints name the host. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AeFqV96dVeBX94inzcgZKw
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
# Optional: the web UI on a public name, so people can search without running
|
||||
# their own node. Not part of the kustomization until you enable it there.
|
||||
#
|
||||
# The same port serves the owner API. It is protected by the admin token
|
||||
# (which stays on the volume, /data/admin.token), but put TLS in front of it
|
||||
# and consider limiting /api/v1/ to your own address ranges if you do not need
|
||||
# the owner screens from outside.
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: allmende
|
||||
annotations:
|
||||
# cert-manager.io/cluster-issuer: letsencrypt
|
||||
nginx.ingress.kubernetes.io/proxy-read-timeout: "60"
|
||||
spec:
|
||||
# ingressClassName: nginx
|
||||
tls:
|
||||
- hosts: [allmende.example.org]
|
||||
secretName: allmende-tls
|
||||
rules:
|
||||
- host: allmende.example.org
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: allmende-http
|
||||
port:
|
||||
name: http
|
||||
Reference in New Issue
Block a user