Enabling the Portal
In this early iteration of the Self-Managed Portal, the client interacts directly with the Operator API and Big Peer API. As such, there are a few steps required to allow the Portal to access these APIs.1
Enable the Portal in the Operator
Upgrade the Ditto Operator Helm release to enable the portal:Replace
example with the name of your Big Peer.The
operatorApiUrl and bigPeerBaseUrl values are configured for local port-forwarding, which we’ll set up in a later step.2
Configure CORS on your Big Peer
The Portal UI runs in your browser and makes requests to the Big Peer HTTP API. To allow these cross-origin requests, configure CORS on your Big Peer:Replace
example with the name of your Big Peer.3
Set up port forwarding
The Portal requires access to three services. Set up port forwarding for each:
The Big Peer API port-forward goes through the nginx ingress controller to ensure CORS headers are applied. Direct port-forwarding to the Big Peer API pods would bypass nginx and result in CORS errors.
4
Access the Portal
Open http://localhost:8080 in your browser. The Portal login page should appear.
Using the Portal
Authenticating with the Operator API
When you first access the Portal, you’ll be prompted to authenticate with the Operator API. The Portal uses a Kubernetes service account token for this. Generate a token:New Installation
To enable the portal as part of a new Operator installation:Configuration Options
| Option | Description | Default |
|---|---|---|
portal.enabled | Enable the self-managed portal UI | false |
portal.config.bigPeerName | Name of the BigPeer resource to manage | '' |
portal.config.operatorApiUrl | URL for the Portal to reach the Operator API | Auto-generated |
portal.config.bigPeerBaseUrl | URL for the Portal to reach the Big Peer HTTP API | '' |
portal.replicaCount | Number of portal replicas | 1 |
portal.image.tag | Override the portal image tag | Operator version |
portal.ingress.enabled | Enable ingress for external access | false |