The Pravega Ingest Gateway is a simple HTTP server that can be used to write JSON events to a Pravega stream.
-
Copy the file
scripts/env-sample.shtoscripts/env-local.sh. This script will contain parameters for your environment. -
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 -
Copy the sample values file from
values/samples/pravega-ingest-gateway.yamlorvalues/samples/pravega-ingest-gateway-tls.yamltovalues/local/pravega-ingest-gateway.yamlor any other destination. You may name this file anything, but you must use alphanumeric characters and dashes only. -
Edit this file to use your Pravega stream name and HTTP server FQDN.
-
(Optional) If you customized the Java code, compile and deploy the Docker image.
a. Set DOCKER_REPOSITORY and IMAGE_TAG in scripts/env-local.sh.
b. Add matching values for
image.repositoryandimage.tagin values/local/pravega-ingest-gateway.yaml.c. Build and push the Docker image.
scripts/build.sh ``` -
Deploy the Pravega Ingest Gateway using Helm.
scripts/deploy.sh values/local/pravega-ingest-gateway.yaml
-
Send a test event.
scripts/send-test-event.sh
scripts/build.sh
scripts/deploy-docker.shexport PRAVEGA_CONTROLLER=tcp://localhost:9090
../gradlew runscripts/send-test-event.sh