This commit is contained in:
huanqing.shao
2020-02-26 14:23:16 +08:00
parent 842bac3b9e
commit e2fd7c1b09
7 changed files with 18 additions and 10 deletions

View File

@ -1,6 +1,7 @@
---
vssueId: 184
# lessAds: true
sharingTitle: 快速调试 Kubernetes 上部署的应用程序
description: Kubernetes教程本文介绍了如何 Kuboard Proxy 的特点和使用方法
meta:
- name: keywords
@ -32,9 +33,9 @@ meta:
![Kubernetest教程_使用KuboardProxy](./index.assets/image-20200225204455933.png)
如果您看不到中的 ***代理*** 按钮,很可能是您的 Kuboard 版本低于 v1.0.7-beta.4也可能是因为您没有该Service 的 `service/proxy` 对应的权限,请参考 [授权用户访问 KuboardProxy](./auth-proxy.html)
如果您看不到中的 ***代理*** 按钮,很可能是您的 Kuboard 版本低于 v1.0.7-beta.4也可能是因为您没有该Service 的 `service/proxy` 对应的权限,请参考 [授权用户访问 KuboardProxy](./auth-proxy.html)
* 点击上图中的 ***代理*** 按钮,将打开如下界面:
* 点击上图中的 ***代理*** 按钮,将打开如下代理发现界面:
界面中显示了三个区域:

View File

@ -66,7 +66,7 @@ systemctl start kubelet # 假设您安装了 kubenetes
docker info
```
* 查看结果
``` log {12}
``` {12}
...
Docker Root Dir: /var/lib/docker

View File

@ -99,7 +99,7 @@ Kuboard 用于管理的 Kubernetes 集群上部署的各类资源,如果您想
在 Kuboard 早期版本中,为了尝试监控套件的功能,在 Kuboard 所使用的 nginx 中设置了比较宽泛的动态转发,具体配置如下所示:
``` nginx.conf
``` nginx
location ^~ /eip-monitor/ {
location ~ "^/eip-monitor/namespace/(.*)/service/(.*)/port/(.*)/(.*)" {
resolver 127.0.0.1 valid=5s;

Binary file not shown.

After

Width:  |  Height:  |  Size: 384 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

View File

@ -177,7 +177,15 @@ kubectl get pods
点击 ***完成***
此时可查看到该应用的部署结果
此时可查看到该应用的部署结果,如下图所示:
![Kubernetes入门教程](./deploy-app.assets/image-20200226121449752.png)
点击上图中的 ***代理*** 按钮,可以直接测试部署结果。更多细节请参考 [Kuboard Proxy](/guide/proxy) 此功能要求 Kuboard 版本不低于 `v1.0.7-beta.4`。
通过代理访问已部署的 nginx 服务时,默认显示结果如下所示:
![Kubernetes入门教程](./deploy-app.assets/image-20200226122026369.png)
</b-tab>
</b-tabs>
@ -185,7 +193,6 @@ kubectl get pods
可分别查看到一个名为 nginx-deployment 的 Deployment 和一个名为 nginx-deployment-xxxxxxx 的 Pod
~~任务二达成至此你已经成功在k8s上部署了一个实例的nginx应用程序
~~想要知道 Deployment部署、Pod容器组 和 Node(节点) 之间的关系吗?

View File

@ -180,9 +180,9 @@ curl <任意节点的 IP>:32600
填写一条记录:
| 协议 | 服务端口 | 节点端口 | 容器端口 |
| ---- | -------- | -------- | -------- |
| TCP | 80 | 32601 | 80 |
| 协议 | 服务端口 | 节点端口 | 容器端口 |
| ---- | -------- | -------- | -------- |
| TCP | 80 | 32601 | 80 |
如下图所示:
@ -192,7 +192,7 @@ curl <任意节点的 IP>:32600
* **访问服务**
在浏览器打开 `http://<任意节点的 IP>:32601`
在浏览器打开 `http://<任意节点的 IP>:32601
</b-tab>
</b-tabs>