Skip to content

Install Edge in the sandbox

Use a Linux amd64 Docker host or Kubernetes node for the Edge 1.1.0 example. Start with the verified image and the matching release kit. Edge releases

Ask FeedHub operations for a sandbox client entry. They supply the FeedHub instance, broker DNS name and AMQPS port, username, password, binding keys and allowed replica count. Use the values as supplied. The binding keys determine which sports and phases Edge receives. Start with one replica. The sandbox can be redeployed and may run a FeedHub build ahead of the published Edge release.

  • At runtime, allow outbound TCP from Edge to the provisioned broker DNS name and AMQPS port. Set broker TLS to true. Edge verifies the broker certificate against its trust store and the supplied DNS name. FeedHub access uses the client entry’s username and password.
  • The host or cluster needs access to the public registry for image pulls. All runtime traffic between Edge and FeedHub uses broker connections that Edge opens.
  • Inside the container, HTTP/1.1 uses port 8080 for REST, probes and metrics. Plaintext HTTP/2 uses port 8081 for gRPC. Keep these unauthenticated listeners on loopback or a private application network restricted to intended callers. If callers connect across a network boundary, enforce TLS and access control at that boundary.
  • Keep the broker password in a restricted local file or your orchestrator’s secret store. Use the sandbox credential for the sandbox instance.

Download the Compose example and environment template into a new working directory. Create .env with owner-only access.

Terminal window
curl -fsSLO https://releases.betfeedpro.com/1.1.0/docker-compose.example.yml
curl -fsSLO https://releases.betfeedpro.com/1.1.0/edge.env.example
cp docker-compose.example.yml docker-compose.yml
(umask 077 && cp edge.env.example .env)

In docker-compose.yml, set the port mappings for local access.

ports:
- "127.0.0.1:8089:8080"
- "127.0.0.1:8090:8081"

Edit .env in place, replacing the placeholders with the values supplied for your client entry. Add each further binding key with the next index, starting at __1. Quote the password as a literal Compose environment value.

DOCKER_REGISTRY=registry.betfeedpro.com/
EDGE_IMAGE_TAG=1.1.0@sha256:f2eb6f38c6872dc3da3604092250978e51219e391b9682f63172030d9fff9785
FEEDHUB_EDGE_FeedHub__Instance=<sandbox instance>
FEEDHUB_EDGE_FeedHub__Bindings__0=<first binding key>
FEEDHUB_EDGE_RabbitMq__Host=<broker DNS name>
FEEDHUB_EDGE_RabbitMq__Port=<broker AMQPS port>
FEEDHUB_EDGE_RabbitMq__Tls=true
FEEDHUB_EDGE_RabbitMq__Username=<sandbox username>
FEEDHUB_EDGE_RabbitMq__Password='<sandbox password>'

From that directory, validate the Compose file, confirm the resolved image matches the digest you verified, and start Edge.

Terminal window
docker compose -f docker-compose.yml config --quiet
docker compose -f docker-compose.yml config --images
docker compose -f docker-compose.yml pull
docker compose -f docker-compose.yml up -d

After an exit, the Compose example leaves the container stopped. Inspect its logs and fix the reported cause before starting it again. Operate and diagnose Edge

Use a Kubernetes context for the sandbox installation. Create a namespace and put the supplied password in a protected local file named broker-secret containing only the password, without a trailing newline. Create the Secret in the same namespace as the chart release.

Terminal window
kubectl create namespace feedhub-sandbox
kubectl -n feedhub-sandbox create secret generic feedhub-edge-broker \
--from-file=password=./broker-secret

Save the following as values.yaml. Set the supplied numeric AMQPS port, list every supplied binding key, and keep the Secret name aligned with the command above.

replicas: 1
image:
tag: "1.1.0@sha256:f2eb6f38c6872dc3da3604092250978e51219e391b9682f63172030d9fff9785"
feedHub:
instance: "<sandbox instance>"
bindings:
- "<first binding key>"
rabbitMq:
host: "<broker DNS name>"
port: <broker AMQPS port>
tls: true
username: "<sandbox username>"
passwordSecret:
name: feedhub-edge-broker
Terminal window
curl -fsSLO https://releases.betfeedpro.com/1.1.0/feedhub-edge-1.1.0.tgz
helm upgrade --install feedhub-edge ./feedhub-edge-1.1.0.tgz \
--namespace feedhub-sandbox --values values.yaml
kubectl -n feedhub-sandbox port-forward service/feedhub-edge 8089:8080 8090:8081

The chart creates a cluster-internal Service and probes process health and initial readiness separately. The port-forward stays in the foreground and may wait for a pod. Use another terminal for the first-start checks. Operate and diagnose Edge

Run each replica index once, within the count approved for the client entry and Edge’s range of 1 to 16. The chart creates one Deployment per index and uses the Recreate strategy to avoid overlapping pods for an index. Use one Helm release per client entry. In Compose, use one service per index, setting FEEDHUB_EDGE_FeedHub__Replica and unique host ports for each service. Two processes with the same index split deliveries between them.

Each replica loads its own state and maintains its own broker connection. A bet-results stream uses an additional connection. If a replica stops, its subscribers reconnect and receive a fresh snapshot when their resume token belongs to a different replica.