Prepare the cluster
Danube Cloud’s team has a Kubernetes cluster and a chart to install. Most installation problems on this platform do not come from the chart. They come from names that do not resolve, from routes that cannot be reached, and from state that was never meant to survive a restart.
What the cluster provides
Section titled “What the cluster provides”- Kubernetes with the Gateway API and a gateway controller. At the time of writing the chart is written for Traefik.
- Helm 3.8 or later, because the chart is published as an OCI artifact.
- Access to the image registry
ghcr.io, or a mirror. - A storage class for persistent volumes.
Three kinds of public names
Section titled “Three kinds of public names”| Name | Example | What it serves |
|---|---|---|
| Platform host | danube-cloud.example | All APIs under /api: protocol endpoints for counterparties and administration routes. |
| Identity host | identity.danube-cloud.example | The identity documents of the hosted participants. |
| Issuer host | issuer.bike-dataspace.example | The identity document of the issuer. |
The two extra hosts exist because of how identifiers work. A participant is identified by a DID of the method did:web, and such an identifier is an address:
did:web:identity.danube-cloud.example:costa-frames resolves tohttps://identity.danube-cloud.example/costa-frames/did.jsonThis has three consequences.
- An identifier cannot move. If the host name changes, every participant’s identifier changes, and the credentials issued to the old one can no longer be used. Choose names that you can keep for years.
- The identity hosts need names of their own. The Identity Hub finds a document by the exact address of the request, so these routes cannot be rewritten at the gateway.
- The issuer’s name should belong to the association. Lecture 8 explains why.
Plan TLS certificates for all three names. The gateway object that the chart creates has a single plain HTTP listener. Terminate TLS in front of it, or switch it off with security.gateway.enabled and provide a gateway with HTTPS listeners.
The names must resolve from inside, too
Section titled “The names must resolve from inside, too”The services call the same public addresses that they publish. The connector, for example, resolves the issuer’s identifier to verify a credential.
Every public name must therefore reach the gateway from outside the cluster and from a pod inside it. On a local cluster this fails quietly: a name under .localhost resolves to the pod itself, and the lookup of an identity document finds nothing. The chart’s README documents a fix for local clusters and a check to run from a pod:
kubectl -n edc-v run didcheck --rm -it --restart=Never \ --image=debian:stable-slim -- getent hosts issuer.bike-dataspace.exampleThe answer must be an address that leads to the gateway. In production you need public DNS records for all three names, and pods must be able to reach the gateway under them. Run the check before you install, and again after every change to DNS or to the gateway.
State, and the defaults for development
Section titled “State, and the defaults for development”The platform keeps three kinds of state. The chart brings a default for each, and its README says plainly that these defaults are for local and development clusters.
| Kind | What it holds | Default in the chart | A production platform needs |
|---|---|---|---|
| Databases | One database per service. | One PostgreSQL server without a persistent volume. | Persistent, backed-up databases. |
| Secret store | The keys of every participant and of the issuer, and the keys that sign tokens. | Vault in development mode, with a fixed root token in the services’ configuration. | A persistent secret store, with access by workload role. |
| Messaging | Events and work queues between the services. | NATS with JetStream, without a persistent volume. | A persistent volume for the streams. |
Two more defaults need attention. The database passwords and other secrets are fixed placeholders, and debug agents are switched on. Set global.debug.enabled to false, and size the replicas for your load. Some defaults are values that you set. Others are fixed in the chart’s templates at the time of writing, for example the database passwords of the services, and need a patched or wrapped chart.
Key takeaways
Section titled “Key takeaways”- The chart needs the Gateway API with a gateway controller, Helm with OCI support, and a storage class.
- A platform has three kinds of public names. Identifiers contain these names, so they cannot change later.
- Every public name must resolve to the gateway from outside the cluster and from inside it.
- The chart’s defaults for secrets, databases, and debugging are for development. Plan their replacements before the installation.
Go deeper
Section titled “Go deeper”- Core Platform Distribution: README (opens in a new tab) describes the prerequisites, the exposed endpoints, and the DNS requirement of
did:web. - Kubernetes Gateway API (opens in a new tab) documents gateways, listeners, and routes.
- did:web method specification (opens in a new tab) defines how an identifier maps to the address of its document.
An Eclipse Foundation (opens in a new tab) project · Incubating · Licensed under the Apache License 2.0 (opens in a new tab)