You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ki...@apache.org on 2021/07/28 08:45:40 UTC

[trafficserver-ingress-controller] branch master updated: Update TUTORIAL.md (#91)

This is an automated email from the ASF dual-hosted git repository.

kichan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver-ingress-controller.git


The following commit(s) were added to refs/heads/master by this push:
     new 3b2ce84  Update TUTORIAL.md (#91)
3b2ce84 is described below

commit 3b2ce843394c495e923ba94a10efff49c9d72545
Author: Hung-Yi (Joey) Chen <30...@users.noreply.github.com>
AuthorDate: Wed Jul 28 03:45:31 2021 -0500

    Update TUTORIAL.md (#91)
    
    Add instructions to fetch the Pod name automatically.
---
 docs/TUTORIAL.md | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/docs/TUTORIAL.md b/docs/TUTORIAL.md
index 1f4adc1..8877e4e 100644
--- a/docs/TUTORIAL.md
+++ b/docs/TUTORIAL.md
@@ -110,6 +110,11 @@ You may have problem with minikube using docker driver as localhost (i.e. 127.0.
 - `$ kubectl port-forward <pod name> 30443:8443 -n trafficserver-test`
 - `$ kubectl port-forward <pod name> 30080:8080 -n trafficserver-test`
 
+You may also use the following to fetch the Pod name automatically.
+
+- `$ kubectl port-forward $(kubectl -n trafficserver-test get pods -l=app="trafficserver-test" -o name) 30443:8443 -n trafficserver-test`
+- `$ kubectl port-forward $(kubectl -n trafficserver-test get pods -l=app="trafficserver-test" -o name) 30080:8080 -n trafficserver-test`
+
 #### ConfigMap
 
 Below is an example of configuring Apache Traffic Server [_reloadable_ configurations](https://docs.trafficserver.apache.org/en/8.0.x/admin-guide/files/records.config.en.html#reloadable) using [kubernetes configmap](https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/) resource: