pokt-network / pocket

Official implementation of the Pocket Network Protocol v1
https://pokt.network
MIT License
61 stars 33 forks source link

[Development] Add LocalDev pod debugging #945

Open red-0ne opened 11 months ago

red-0ne commented 11 months ago

Description

Add debugging capabilites to k8s LocalNet using dlv server and port forwarding.

Summary generated by Reviewpad on 04 Aug 23 08:24 UTC

This pull request includes the following changes:

  1. Added a new make target kube_debug which sets up a port-forwarding to a specific debugging pod.
  2. Added a section on how to debug with dlv in the README.md file.
  3. Updated the Tiltfile to include a new entrypoint for the pocket-image docker build, which enables debugging with dlv.

These changes aim to facilitate debugging and improve the development workflow for Pocket nodes.

Issue

Fixes #183

Type of change

Please mark the relevant option(s):

List of changes

Testing

Required Checklist

If Applicable Checklist

red-0ne commented 11 months ago

@Olshansk, I did not manage to make it work with lightweight localnet. I think we should check if it's malfunctioning and ship this without it.

@okdas , Do you think we could toggle liveness/readiness checks with make debug_pod run/cancellation?

Olshansk commented 10 months ago

@red-0ne What is this still a draft? Asking to understand in review process.

red-0ne commented 10 months ago

@red-0ne What is this still a draft? Asking to understand in review process.

This still does not have dlv on lightweight localnet. I'm OK having this on k8s only for now and switch it as ready for review.