Rancher 和容器之间的连接是如何建立的?

how is the connection between Rancher and a container established?

我对kubernetes还不是很熟悉

我在 VM 中有一个小型 k8s 集群,在云中有 rancher。两者相互连接。我通过rancher在k8s集群上部署了一个数据库UI.

然后我可以通过Rancher UI中的shell-window直接连接到数据库的容器。这里如何保证安全连接?这两个 TLS 连接是从 rancher 后端到 cattle 集群代理,然后再从 cattle 集群代理到数据库容器吗?

你知道描述这种情况的文章吗?

https://github.com/rancher/dashboard/blob/master/components/nav/WindowManager/KubectlShell.vue

它使用 websocket 连接连接到有问题的集群。