fix(chart): mqttx-web http-server 显式绑 0.0.0.0,修复 Service 转发拒绝连接
emqx/mqttx-web 镜像默认 http-server 启动未显式绑 0.0.0.0,容器内只听 loopback, 导致 Service/Pod IP 进不来、Ingress 502。覆盖启动参数强制监听所有接口。
This commit is contained in:
1 parent
b0563138f4
commit
0abab2a624
1 file changed
+4
@@ -23,6 +23,10 @@ spec:
|
||||
- name: {{ $name }}
|
||||
image: "{{ .Values.mqttx.image.repository }}:{{ .Values.mqttx.image.tag | default "latest" }}"
|
||||
imagePullPolicy: IfNotPresent
|
||||
# emqx/mqttx-web 镜像默认 http-server 未显式绑 0.0.0.0,导致只听 loopback、
|
||||
# Service/Pod IP 进不来。显式覆盖启动参数,强制监听所有接口。
|
||||
command: ["http-server"]
|
||||
args: ["-a", "0.0.0.0", "-p", "80"]
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 80
|
||||
|
||||
Reference in new issue
Block a user