diff --git a/k8s/README.md b/k8s/README.md index 8395b1f..a4d4248 100644 --- a/k8s/README.md +++ b/k8s/README.md @@ -6,7 +6,7 @@ DHT and relays for nodes behind a NAT. It also works behind your home router. ``` k8s/base/ namespace, StatefulSet (+1 Gi volume), Services, config -k8s/base/ingressroute.yaml optional: the web UI on a public name, a Traefik IngressRoute (off by default) +k8s/base/ingressroute.yaml the web UI on a public name, a Traefik IngressRoute k8s/overlays/nodeport/ variant for a cluster without a load balancer ``` @@ -81,10 +81,10 @@ so: When you do want to sign in, read the token yourself and open `http://localhost:8080/#/login/` through the port-forward below: `kubectl -n allmende exec allmende-0 -- cat /data/admin.token` -- **The web UI** is not published by default. For a look at it: - `kubectl -n allmende port-forward svc/allmende-http 8080:8080`. To publish - it, enable `ingressroute.yaml` in `base/kustomization.yaml` (read its note first: - the same port serves the owner API). +- **The web UI** is published through Traefik by `ingressroute.yaml` (host in + that file). The same port serves the owner API, which the admin token + protects. To keep it private, comment the file out in `base/kustomization.yaml` + and use `kubectl -n allmende port-forward svc/allmende-http 8080:8080`. - **Regions.** A bootstrap node follows none. To make it also keep listings, open the UI through the port-forward, sign in and choose regions. - **More than one bootstrap node** on different networks makes the network diff --git a/k8s/base/ingressroute.yaml b/k8s/base/ingressroute.yaml index ecf7950..39d9bbe 100644 --- a/k8s/base/ingressroute.yaml +++ b/k8s/base/ingressroute.yaml @@ -1,6 +1,6 @@ -# Optional: the web UI on a public name, through Traefik, modelled on the gitea -# IngressRoute (same ingress class, entry point and shape). Not part of the -# kustomization until you enable it there. +# The web UI on a public name, through Traefik, modelled on the gitea +# IngressRoute (same ingress class, entry point and shape). It is listed in +# kustomization.yaml; comment it out there to run without a public UI. # # There is no separate web image: the UI is built into the allmende binary, so # the one image (see kustomization.yaml) serves it on port 8080. diff --git a/k8s/base/kustomization.yaml b/k8s/base/kustomization.yaml index 351f0d6..7b35d63 100644 --- a/k8s/base/kustomization.yaml +++ b/k8s/base/kustomization.yaml @@ -14,8 +14,8 @@ resources: - statefulset.yaml - service-p2p.yaml - service-http.yaml - # Optional: the web UI on a public name. Traefik IngressRoute; read the note in ingressroute.yaml first. - # - ingressroute.yaml + # The web UI on a public name (Traefik IngressRoute). Comment it out to keep the UI private. + - ingressroute.yaml configMapGenerator: - name: allmende-config