Skip to content

Commit

Permalink
add a workaround for halted pod restart
Browse files Browse the repository at this point in the history
  • Loading branch information
red-0ne committed Aug 4, 2023
1 parent 14169c2 commit 9ef7c35
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions build/localnet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ This guide shows how to deploy a LocalNet using [pocket-operator](https://github
- [Debug with dlv](#debug-with-dlv)
- [k8s LocalNet: Connect to a node debugging server](#k8s-localnet-connect-to-a-node-debugging-server)
- [Configure VSCode debugger](#configure-vscode-debugger)
- [docker-compose based LocalNet](#docker-compose-based-localnet)
- [Debug tests](#debug-tests)
- [Troubleshooting](#troubleshooting)
- [Why?](#why)
Expand Down Expand Up @@ -245,7 +244,20 @@ Then you have just to set your breakpoints and start the debugging session (no n

[Watch demo](https://github.com/pokt-network/pocket/assets/231488/3525161f-2098-488a-8f36-8747e40320a6)

### docker-compose based LocalNet
k8s runs liveness and readiness checks and restarts the pods that are not responsive. In order to not have the debugging session dropped because of the pod restarting, you have to comment `livenessProbe` and `readinessProbe` sections in `charts/pocket/templates/statefulset.yaml`

```yaml
# Comment this section disable liveness checks for debugging
livenessProbe:
httpGet:
path: /v1/health
port: rpc
# Comment this section disable readiness checks for debugging
readinessProbe:
httpGet:
path: /v1/health
port: rpc
```
### Debug tests
Expand Down

0 comments on commit 9ef7c35

Please sign in to comment.