This repository demonstrates how to integrate Qpoint with GitHub Actions for seamless traffic monitoring and security in CI/CD pipelines.
This demo shows how to:
- Deploy Qpoint in a GitHub Actions workflow
- Wait for Qpoint to become ready
- Generate sample traffic using a traffic generator
- Monitor traffic patterns through Qpoint
The main workflow file .github/workflows/qpoint-demo.yml
contains the following steps:
- Checkout Code: Clones the repository code
- Install Qpoint: Deploys Qpoint using Docker with the necessary privileges
- Wait for Qpoint: Ensures Qpoint is fully initialized and ready
- Run Traffic Generator: Starts a traffic generator to simulate network traffic
- Wait for Demo: Allows time for the demo to run and collect data
You can test this workflow locally using act:
# Install act (if not already installed)
brew install act
# Run the workflow
act -j setup-qpoint --container-architecture linux/amd64
Note: When running locally with act, you may need to provide additional environment variables or settings depending on your specific environment.
- Docker
- GitHub Actions
- For local testing: act
The workflow uses the following configuration:
- Qpoint container:
us-docker.pkg.dev/qpoint-edge/public/qtap:v0
- Traffic generator:
jonfriesen/traffic-generator-go:amd64_1.22
- Traffic generation rate: 1 request per second with 3 workers
- The Qpoint container requires privileged mode and specific capabilities to function correctly
- The workflow checks Qpoint's readiness by polling the
/readyz
endpoint - A GitHub secret named
TOKEN
can be used to pass the registration token securely