-
Notifications
You must be signed in to change notification settings - Fork 64
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
Unable to change the service name for the Listener Service #1078
Comments
Hi @hardillb EMQX operator did this on purpose, like the |
If there are Is there a way to get a different service name? This makes it very hard to use emqx as a drop in replacement for an existing broker. |
OK, so I've worked out that the services are all prefixed with the Also it would be nice to be able to mark some listeners as not exported to the LoadBalancer, but still available internally (but this is a separate feature request). |
Yes, and also you can set custom labels for different service, is it make sense for you ? |
Could you please talk this feature request ? Is it means you want to set some EMQX's listener, but you don't want to export it to K8s service ? I have some confuse, because in K8s, the best way to access pod's port is by service, because pod is not a stateful object, it will be re-scheduling in anytime. |
Can you point to the documentation for that please.
I mean that I want to expose some listeners outside of k8s via a LoadBalancer service and. Some just internally say via a ClusterIP service. E.g. I want to make just a TLS listener available to external clients, but provide a none TLS listener to clients inside the cluster |
Like this: apiVersion: apps.emqx.io/v2beta1
kind: EMQX
metadata:
name: emqx
spec:
image: emqx:5
listenersServiceTemplate:
metadata:
labels:
my-service: "my-listeners-service"
dashboardServiceTemplate:
metadata:
labels:
my-service: "my-dashboard-service" And then, you can get service by kubectl $ kubectl get svc -l 'my-service=my-listeners-service'
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
emqx-listeners ClusterIP 10.101.163.27 <none> 8883/TCP,1883/TCP,8083/TCP,8084/TCP 35s $ kubectl get svc -l 'my-service=my-dashboard-service'
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
emqx-dashboard ClusterIP 10.98.60.14 <none> 18083/TCP 40s |
I'm sorry EMQX operator can not do this now, but maybe you can use |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Describe the bug
Setting
metadata.name
in thelistenersServiceTemplate
doesn't change the service nameTo Reproduce
Steps to reproduce the behavior:
name
entry inmetadata
section oflistenersServiceTemplate
Expected behavior
The ability to rename the listeners service
Anything else we need to know?:
Environment details::
The text was updated successfully, but these errors were encountered: