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:
@@ -105,7 +105,11 @@ It prints the DNS TXT records to publish at `_dnsaddr.allmende.stinnesbeck.com`
|
||||
(`dnsaddr=/ip4/<ip>/tcp/4001/p2p/<peer id>`, one per address). With a few such
|
||||
nodes on different networks, the network no longer depends on any one of them.
|
||||
In Docker replace the command (see the end of the `Dockerfile`) and add `--public`;
|
||||
the NixOS module has `services.allmende.public = true`.
|
||||
the NixOS module has `services.allmende.public = true`. On Kubernetes, `k8s/`
|
||||
has ready manifests (kustomize), including how to run it behind a home router
|
||||
with a port forward: see [k8s/README.md](k8s/README.md). A node that does not
|
||||
know its own public address (router, container) is told one with
|
||||
`--announce /dns4/<name>/tcp/4001`.
|
||||
|
||||
## Running a node for real
|
||||
|
||||
|
||||
Reference in New Issue
Block a user