Skip to content

Latest commit

 

History

History
53 lines (39 loc) · 1.31 KB

README.md

File metadata and controls

53 lines (39 loc) · 1.31 KB

Pravega Ingest Gateway

The Pravega Ingest Gateway is a simple HTTP server that can be used to write JSON events to a Pravega stream.

Deploy to SDP using Helm

  1. Copy the file scripts/env-sample.sh to scripts/env-local.sh. This script will contain parameters for your environment.

  2. You can enable TLS (HTTPS) with a private Certificate Authority with these steps. This method is intended only for development and testing environments.

    cd ssl
    ./create-dev-all.sh
    ./load-secrets.sh
  3. Copy the sample values file from values/samples/pravega-ingest-gateway.yaml to values/local/pravega-ingest-gateway.yaml or any other destination. You may name this file anything, but you must use alphanumeric characters and dashes only.

  4. Edit this file to use your Pravega stream name and HTTP server FQDN.

  5. Deploy the Pravega Ingest Gateway using Helm.

    scripts/deploy.sh values/local/pravega-ingest-gateway.yaml
  6. Send a test event.

    scripts/send-test-event.sh

Run Gateway in Docker

scripts/build.sh
scripts/deploy-docker.sh

Run Gateway Locally

export PRAVEGA_CONTROLLER=tcp://localhost:9090
../gradlew run

Send Test Event

scripts/send-test-event.sh