From 057c60869854cf0d07ac601f9091160bfe8ff448 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 20 Oct 2024 17:22:11 +0800 Subject: [PATCH] [YUNIKORN-2936] Access K8s dashboard by port-forwarding Closes: #493 Signed-off-by: Yu-Lin Chen --- docs/developer_guide/env_setup.md | 6 +++--- versioned_docs/version-1.6.0/developer_guide/env_setup.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/developer_guide/env_setup.md b/docs/developer_guide/env_setup.md index ee5b4df8c5..5de8bbe213 100644 --- a/docs/developer_guide/env_setup.md +++ b/docs/developer_guide/env_setup.md @@ -66,11 +66,11 @@ Optionally, after setting up Kubernetes you may wish to deploy the Kubernetes Dashboard Web UI. The dashboard may be deployed using the following steps: 1. Follow the instructions [here](https://github.com/kubernetes/dashboard) to deploy the dashboard. -2. Start the Kubernetes proxy in the background from a terminal to get access on the dashboard on the local host: +2. Use port-forwarding to access the dashboard on the local host: ```shell script - kubectl proxy & + kubectl -n kubernetes-dashboard port-forward svc/kubernetes-dashboard-kong-proxy 8443:443 ``` -3. Access the dashboard [here](http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard-kong-proxy:443/proxy/#/login). +3. Access the dashboard [here](https://localhost:8443/#/login). ### Access local Kubernetes cluster diff --git a/versioned_docs/version-1.6.0/developer_guide/env_setup.md b/versioned_docs/version-1.6.0/developer_guide/env_setup.md index ee5b4df8c5..5de8bbe213 100644 --- a/versioned_docs/version-1.6.0/developer_guide/env_setup.md +++ b/versioned_docs/version-1.6.0/developer_guide/env_setup.md @@ -66,11 +66,11 @@ Optionally, after setting up Kubernetes you may wish to deploy the Kubernetes Dashboard Web UI. The dashboard may be deployed using the following steps: 1. Follow the instructions [here](https://github.com/kubernetes/dashboard) to deploy the dashboard. -2. Start the Kubernetes proxy in the background from a terminal to get access on the dashboard on the local host: +2. Use port-forwarding to access the dashboard on the local host: ```shell script - kubectl proxy & + kubectl -n kubernetes-dashboard port-forward svc/kubernetes-dashboard-kong-proxy 8443:443 ``` -3. Access the dashboard [here](http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard-kong-proxy:443/proxy/#/login). +3. Access the dashboard [here](https://localhost:8443/#/login). ### Access local Kubernetes cluster