Files
allmende/k8s/base/kustomization.yaml
T
nilsandClaude Sonnet 5.5 819df6d512 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
2026-11-18 11:40:25 +01:00

37 lines
1007 B
YAML

# A public Allmende node (a bootstrap node) for your own cluster.
#
# kubectl apply -k k8s/base (or: kustomize build k8s/base | kubectl apply -f -)
#
# Before you apply: set the image below and the public name in config.env.
# See k8s/README.md for the whole setup (router, DNS, first start).
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: allmende
resources:
- namespace.yaml
- statefulset.yaml
- service-p2p.yaml
- service-http.yaml
# Optional: the web UI on a public name. Read the note in ingress.yaml first.
# - ingress.yaml
configMapGenerator:
- name: allmende-config
envs:
- config.env
# Build the image from the Dockerfile in the repository root, push it to a
# registry your cluster can pull from, and name it here.
images:
- name: allmende
newName: registry.example.com/allmende
newTag: latest
labels:
- pairs:
app.kubernetes.io/name: allmende
app.kubernetes.io/part-of: allmende
includeSelectors: false