Skip to content

如何以nodeport方式暴露端口 #521

Answered by Rory-Z
codering asked this question in Q&A
Discussion options

You must be logged in to vote

我使用 2.0.2 版本的 EMQX Operator,部署 NodePort 类型的 service 是正常的

$ kubectl get emqx emqx -o json | jq '.spec.dashboardServiceTemplate.spec.type,.spec.listenersServiceTemplate.spec.type'
"NodePort"
"NodePort"

$ kubectl get svc                                             
NAME             TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)           AGE
emqx-dashboard   NodePort    10.104.197.110   <none>        18083:32102/TCP   95s
emqx-headless    ClusterIP   None             <none>        4370/TCP          95s
emqx-listeners   NodePort    10.100.28.120    <none>        1883:30414/TCP    52s
kubernetes       ClusterIP   10.96.0.1        <none>        443/TCP           5d23h

可以分享一下 EMQX Operator…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@codering
Comment options

@codering
Comment options

@Rory-Z
Comment options

@codering
Comment options

@Rory-Z
Comment options

Answer selected by codering
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants