__ _____.__
_____/ |__/ ____\ | ______
/ ___\ __\ __\| | \____ \
/ /_/ > | | | | |_| |_> >
\___ /|__| |__| |____/ __/
/_____/ |__|
What it is
gtfp
is a tool for debugging pods and cloudevents.
Capabilities:
Join the Discord for help or to chat!
- Logging : Stream the logs from pods in the same namespace as the
gtflp
deployment. Allowing you to monitor pod logs in a single window.
- Monitor and Inject Cloudevents : Inject &| view events that are sent directly to the
gtflp
deployment, or configured triggers. note: One can populate the Injection values by clicking a recieved event, allowing users to re-play cloudevents.
- View active Pods
- View info about the active pods
- View Knative Service deployments
- View info about the KSVC deployments
- View Brokers
- View info about the Brokers
- View Triggers
- View info about the Triggers
- View Bridges
- View info about the Bridges
- View Deployed Sources
- View info about the Sources
- List resources by providing a custom Grop Version Resource
- View information about resources by providing a custom Grop Version Resource
Prerequisites
To deploy
To develop
How to use it
Deploy from manifest
-
Download the
release.yaml
from the most current releases. -
Update line 74 of file
release.yaml
with the correct namespace. -
Apply the manifest:
kubectl -n <namespace> apply -f release.yaml
-
After applying the manifest, retreive the url with the following command:
kubectl -n <namespace> get ksvc
-
It should return something similar to the following:
NAME URL LATESTCREATED LATESTREADY READY REASON gtflp https://gtflp.demo.dev.triggermesh.io gtflp-00002 gtflp-00002 True
-
Open the url in your browser.
Note: The image located at gcr.io/fit-stream-305821/gtflp is kept up to date with this repo via Github Actions, on each merge with master. If you want to deploy an image that gets regular updates. Use this one.
Deploy from Triggermesh
-
Login to triggermesh.
-
Navigate to the Bridges page.
-
Select "New Bridge" in the top right corner, next to "Refresh".
-
Select "Create a New Bridge".
-
Select "Target".
-
Select the
Services
item. -
Select
gtflp
from the "Image Catalog" dropdown. -
Save.
-
Select "Submit Bridge" in the top right corner, next to "Refresh".
-
Navigate to the Services page.
-
Select
gtflp
(or whatever you named the deployment). -
On this page in the "Routes" card you can note the deployment URL listed as "Domain".
-
Navigate to this URL.
-
Enjoy a quality deubbing experience.
Note If you leave the deployment name as gtflp
then the logs will be hidden from the UI. If you want to show logs from the gtflp
pod, then chagne the name of the deployment to something else.
Development
Frontend
cd frontend
yarn install
yarn start
To build the frontend and update the static files located in /cmd/gtflp/kodata
.
make update-static
Backend
export CLUSTER_NAME=<cluster-name>
KO_DATA_PATH=cmd/gtflp/kodata/ go run ./cmd/gtflp
Or
export CLUSTER_NAME=<cluster-name>
make debug
Releaseing
-
Create a
release.yaml
file in the root directory:make release
-
Update line 74 of file gtflp.yaml with the correct namespace before applying.
Note If you leave the deployment name as gtflp
then the logs will be hidden from the ui. If you want to show logs from the gtflp
pod, then chagne the name of the deployment to something else.
Contributing
Please open an issue if you have any questions or suggestions! Or feel free to fork and PR!
Join the Discord for help or to chat!