Skip to content

Add local/IP deployment guide and clarify http vs https in examples#192

Merged
rbardaji merged 1 commit into
mainfrom
docs/191-local-ip-deployment-guide
Jun 10, 2026
Merged

Add local/IP deployment guide and clarify http vs https in examples#192
rbardaji merged 1 commit into
mainfrom
docs/191-local-ip-deployment-guide

Conversation

@rbardaji

Copy link
Copy Markdown
Collaborator

Closes #191

Why

Pratik's evaluation surfaced a series of first-run failures that all share one root cause: the docs and demo slides implicitly assume the Endpoint is reached through a real domain with a valid TLS certificate. Deploying on a bare VM/IP without a domain (a common evaluation setup) repeatedly breaks — most recently, a streaming-client call failed with a confusing "Kafka endpoint undefined" message that was actually caused by using https://<ip> (no certificate on a bare IP).

Changes

  • README — new "Local / IP-based deployment (no domain, no TLS)" section consolidating the rules for this setup: use http:// not https://, use the host's real IP (not internal overlay/pod addresses like 10.244.x.x), the correct ports (docker run → 8001, compose → 8002, container always :80), profiles without Pelican, rebuilding after updates, and the Kafka/streaming reachability caveat — the Endpoint returns the configured KAFKA_HOST/KAFKA_PORT verbatim via GET /status/kafka-details, so clients outside the Docker network need externally reachable values, not internal names like kafka:9093.
  • docs/info_for_nationaldataplatform/04-automating-with-python.md — note that the https://… base_url examples assume a domain + cert and a bare IP/localhost should use http://.
  • docs/demo/NDP-demo-presentation.md — same one-line clarification on the APIClient slide.
  • Version bumped to 0.32.4.

Testing

Documentation-only change; the only code change is the version string (tests mock the version).

…ples

Several first-run failures share one root cause: the docs and demo slides
implicitly assume a real domain with TLS, so evaluators deploying on a bare IP
without a certificate hit avoidable errors (e.g. https://<ip> failing, which
surfaces downstream as a confusing "Kafka endpoint undefined").

Add a "Local / IP-based deployment (no domain, no TLS)" section to the README
covering http vs https, host IP vs internal overlay addresses, ports, profiles
without Pelican, rebuilding after updates, and the Kafka reachability caveat
(KAFKA_HOST/KAFKA_PORT are returned to clients verbatim, so they must be
externally reachable). Also note in the Python automation guide and the demo
presentation that the https examples assume a domain+cert and a bare IP should
use http.

Closes #191
@rbardaji rbardaji merged commit d089db2 into main Jun 10, 2026
1 check passed
@rbardaji rbardaji deleted the docs/191-local-ip-deployment-guide branch June 10, 2026 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No consolidated guidance for deploying on a bare IP without a domain or TLS

1 participant