From a94085707555b00e033ecada1af9b74cf82481b8 Mon Sep 17 00:00:00 2001 From: Rob Watson Date: Sat, 13 Jan 2024 14:17:45 +0100 Subject: [PATCH] docs: update README.md --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 2a85394..08f6302 100644 --- a/README.md +++ b/README.md @@ -85,6 +85,12 @@ To connect locally to the Nginx ingress controller: sudo -E kubectl port-forward dev-ingress-nginx-controller-abcdef1234-ab123 80:80 443:443 22:22 ``` +Or + +``` +sudo -E kubectl port-forward $(kubectl get pods | grep "dev-ingress-nginx-controller.*Running" | awk '{print $1}') 80:80 443:443 22:22 +``` + ### Additional dependencies - envfilesubst [link](https://git.netflux.io/rob/envfilesubst)