Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hgctl gateway-config 适配本地 docker 环境下安装 higress #708

Open
2456868764 opened this issue Dec 18, 2023 · 10 comments
Open

hgctl gateway-config 适配本地 docker 环境下安装 higress #708

2456868764 opened this issue Dec 18, 2023 · 10 comments

Comments

@2456868764
Copy link
Collaborator

Why do you need it?

Is your feature request related to a problem? Please describe in details

hgctl gateway-config 目前只支持 Kubernetes 环境下安装 higress, 要适配在 docker 环境下安装 higress

How could it be?

hgctl gateway-config 增加 --docker 参数适配 docker 环境安装 higress

Other related information

Add any other context or screenshots about the feature request here.

@sjcsjc123
Copy link
Collaborator

docker环境下有些端口并未开放,是否会影响该功能

@2456868764
Copy link
Collaborator Author

docker环境下有些端口并未开放,是否会影响该功能

看是否可以用 docker exec 方式获取 envoy configdump

@johnlanni
Copy link
Collaborator

可以调整下 把对应端口开放出来,请@CH3CHO看下

@CH3CHO
Copy link
Collaborator

CH3CHO commented Dec 19, 2023

这个晚一点我看看

@CH3CHO
Copy link
Collaborator

CH3CHO commented Jan 2, 2024

现在有一个问题是 Gateway 的 15000 端口监听的是 127.0.0.1。按照 https://stackoverflow.com/questions/52513336/is-there-a-way-to-expose-a-docker-container-port-bound-to-127-0-0-1-to-host 的说法,这种端口是没法 expose 出来的。

我们是否需要调整这一端口监听配置呢? @johnlanni

@johnlanni
Copy link
Collaborator

现在有一个问题是 Gateway 的 15000 端口监听的是 127.0.0.1。按照 https://stackoverflow.com/questions/52513336/is-there-a-way-to-expose-a-docker-container-port-bound-to-127-0-0-1-to-host 的说法,这种端口是没法 expose 出来的。

我们是否需要调整这一端口监听配置呢? @johnlanni

这个不建议,有安全风险,那看来只能hgctl直接集成docker exec

@CH3CHO
Copy link
Collaborator

CH3CHO commented Jan 2, 2024

这个不建议,有安全风险,那看来只能hgctl直接集成docker exec

OK。那 controller:8888 和 pilot:15014 我加一个 port 配置暴露到宿主机的 127.0.0.1 吧。

但是如果 gateway:15000 无法暴露的话,hgctl dashboard envoy 这个命令可能就没法搞了。

@johnlanni
Copy link
Collaborator

@CH3CHO 这两个端口暴露也有安全风险,我建议还是统一通过docker exec来搞

@CH3CHO
Copy link
Collaborator

CH3CHO commented Jan 2, 2024

@CH3CHO 这两个端口暴露也有安全风险,我建议还是统一通过docker exec来搞

OK。那么这几个 dashboard 命令就都没法实现了。

@CH3CHO CH3CHO added the help wanted Extra attention is needed label Jan 2, 2024
@CH3CHO CH3CHO removed their assignment Jan 2, 2024
@fengshunli
Copy link
Contributor

assgin me

@johnlanni johnlanni removed the help wanted Extra attention is needed label Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
Development

No branches or pull requests

5 participants