From 00ab870a5debc21ae0a0c3320746998d9612a052 Mon Sep 17 00:00:00 2001 From: jacktao007 Date: Sat, 9 Sep 2023 09:50:31 +0800 Subject: [PATCH] add port access --- docs/deployment/deplpyment-kubernetes.md | 14 ++++++++++++-- .../current/deployment/deplpyment-kubernetes.md | 14 ++++++++++++-- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/docs/deployment/deplpyment-kubernetes.md b/docs/deployment/deplpyment-kubernetes.md index 1ebfa560..b477408f 100644 --- a/docs/deployment/deplpyment-kubernetes.md +++ b/docs/deployment/deplpyment-kubernetes.md @@ -36,8 +36,18 @@ cd SolidUI/deploy/kubernetes/helm-solidui helm install solidui ./ ``` -### 2.3 Accessing Services +### 2.3 View the service status and ingress port +``` +//View pod status +kubectl get pods -n solidui +//View the ingress port +kubectl get svc -A |grep ingress-nginx-controller +//If you do not use ingress access, you can access it through the port-forward forwarding port +kubectl port-forward svc/solidui-web 80:8099 --address 0.0.0.0 -n solidui +``` + +### 2.4 Accessing Services -Access link http://ingress-ip-address:8099 +Access link http://ingress-ip-address:ingress-port Default username and password: admin/admin \ No newline at end of file diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/deployment/deplpyment-kubernetes.md b/i18n/zh-CN/docusaurus-plugin-content-docs/current/deployment/deplpyment-kubernetes.md index cb2a15b9..db6bc380 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs/current/deployment/deplpyment-kubernetes.md +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/deployment/deplpyment-kubernetes.md @@ -35,8 +35,18 @@ cd SolidUI/deploy/kubernetes/helm-solidui helm install solidui ./ ``` -### 2.3 访问服务 +### 2.3 查看服务状态及ingress端口 +``` +//查看pod状态 +kubectl get pods -n solidui +//查看ingress端口 +kubectl get svc -A |grep ingress-nginx-controller +//如果不使用ingress访问可通过port-forward转发端口进行访问 +kubectl port-forward svc/solidui-web 80:8099 --address 0.0.0.0 -n solidui +``` + +### 2.4 访问服务 -访问链接 http://ingress-ip-address:8099 +访问链接 http://ingress-ip-address:ingress-port 默认用户名密码:admin/admin \ No newline at end of file