Skip to content

Commit 9afcf74

Browse files
fix(docs): update pod selector
1 parent 41a8cc9 commit 9afcf74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/operations/accessing-prod.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ The database, as well as application logs and shell, can be accessed via a `KUBE
3535
2. Get the name of the currently running pods and store them in shell variables:
3636

3737
```bash
38-
POD_NAME=$(kubectl -n code-for-philly get pod -l app.kubernetes.io/name=code-for-philly -o jsonpath='{.items[0].metadata.name}')
38+
POD_NAME=$(kubectl -n code-for-philly get pod --field-selector=status.phase=Running -l app.kubernetes.io/name=code-for-philly -o jsonpath='{.items[0].metadata.name}')
3939
```
4040

4141
### Open interactive backend shell

0 commit comments

Comments
 (0)