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.sh
toscripts/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.yaml
orvalues/samples/pravega-ingest-gateway-tls.yaml
tovalues/local/pravega-ingest-gateway.yaml
or 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.repository
andimage.tag
in 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.sh
export PRAVEGA_CONTROLLER=tcp://localhost:9090
../gradlew run
scripts/send-test-event.sh