danhuawang commented on code in PR #103:
URL: 
https://github.com/apache/gravitino-playground/pull/103#discussion_r1848248908


##########
README.md:
##########
@@ -63,100 +62,87 @@ git clone [email protected]:apache/gravitino-playground.git
 cd gravitino-playground
 ```
 
-#### Docker
+### Commands
 
-##### Start
+Command will be automatically detected runtime environment and execute 
corresponding commands.
 
-```
-./playground.sh docker start
-```
+#### Start
 
-##### Check status
-```shell 
-./playground.sh docker status
-```
-##### Stop playground
 ```shell
-./playground.sh docker stop
+./playground.sh start
 ```
 
-#### Kubernetes
-
-Enable Kubernetes in Docker Desktop or Orbstack.
-
-In the project root directory, execute this command:
-
-```
-helm upgrade --install gravitino-playground ./helm-chart/ --create-namespace 
--namespace gravitino-playground --set projectRoot=$(pwd)
-```
-
-##### Start
-
-```
-./playground.sh k8s start
+#### Check status
+```shell
+./playground.sh status
 ```
 
-##### Check status
-```shell 
-./playground.sh k8s status
+#### Stop
+```shell
+./playground.sh stop
 ```
 
-##### Port Forwarding 
+### Port Forwarding
 
-To access the pods or services at `localhost`, you need to do these steps:
+#### Docker
 
-1. Log in to the Gravitino playground Trino pod using the following command:
+Will actomaticaly forward the ports to localhost.
 
-```
-TRINO_POD=$(kubectl get pods --namespace gravitino-playground -l app=trino -o 
jsonpath="{.items[0].metadata.name}")
-kubectl exec $TRINO_POD -n gravitino-playground -it -- /bin/bash
-```
-2. Log in to the Gravitino playground Spark pod using the following command:
+#### Kubernetes
 
-```
-SPARK_POD=$(kubectl get pods --namespace gravitino-playground -l app=spark -o 
jsonpath="{.items[0].metadata.name}")
-kubectl exec $SPARK_POD -n gravitino-playground -it -- /bin/bash
-```
+Currently, need to manually port-forward the ports to localhost.
 
-3. Port-forward the Gravitino service to access it at `localhost:8090`.
+Command format: `kubectl port-forward svc/<service-name> -n <namespace> 
<port>:<target-port>`
 
-```
-kubectl port-forward svc/gravitino -n gravitino-playground 8090:8090      
-```
+Please refer to the [TCP ports used](#tcp-ports-used) section for the 
target-port.
 
-4. Port-forward the Jupyter Notebook service to access it at `localhost:8888`.
+for example:
 
-```
-kubectl port-forward svc/jupyternotebook -n gravitino-playground 8888:8888
-```
-
-##### Stop playground
 ```shell
-./playground.sh k8s stop
+# gravitino
+kubectl port-forward svc/gravitino -n gravitino-playground 8090:8090
+# jupyternotebook
+kubectl port-forward svc/jupyternotebook -n gravitino-playground 18888:8888

Review Comment:
   Should we change to `kubectl port-forward svc/jupyternotebook -n 
gravitino-playground 8888:8888` ?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to