Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [hono-dev] Connect Hono to the Azure Service Bus

Hi,

Yes. That's what I checked to make sure the name is resolvable from within cluster.

leon@ubuntu:~$ kubectl exec -it busybox -- nslookup appstacle.servicebus.windows.net
Server:    10.0.0.10
Address 1: 10.0.0.10 kube-dns.kube-system.svc.cluster.local

Name:      appstacle.servicebus.windows.net
Address 1: 52.166.127.37
leon@ubuntu:~$ kubectl exec -it busybox -- nslookup az-service-bus.hono
Server:    10.0.0.10
Address 1: 10.0.0.10 kube-dns.kube-system.svc.cluster.local

Name:      az-service-bus.hono
Address 1: 52.166.127.37

Mit freundlichen Grüßen / Best regards

Leon Graser
INST-CSS/BSV-OS  

Tel. +49 30 726112-284 


-----Original Message-----
From: hono-dev-bounces@xxxxxxxxxxx <hono-dev-bounces@xxxxxxxxxxx> On Behalf Of Hudalla Kai (INST/ECS4)
Sent: Donnerstag, 26. April 2018 15:53
To: hono-dev@xxxxxxxxxxx
Subject: Re: [hono-dev] Connect Hono to the Azure Service Bus

On Thu, 2018-04-26 at 08:57 +0000, Graser Leon (INST-CSS/BSV-OS) wrote:
> Hi,
> 
> Hono is running on Azure using their managed Kubernetes service 
> https://azure.m icrosoft.com/en-us/services/container-service/
> 
> The hostname of the service bus is stored inside a Kubernetes 
> externalName service 
> https://v1-8.docs.kubernetes.io/docs/concepts/services-networking/serv
> i
> ce/
> kind: Service
> apiVersion: v1
> metadata:
>   name: az-service-bus
> spec:
>   type: ExternalName
>   externalName: appstacle.servicebus.windows.net
> 
> and the Kubernetes DNS services uses the Google public DNS 8.8.8.8. 
> The IP can be received via nslookup.
> 

What is this supposed to mean? Are you able to successfully do a nslookup appstacle.servicebus.windows.net from a pod running on the kubernetes cluster?

> 
> Mit freundlichen Grüßen / Best regards
> 
> Leon Graser
> INST-CSS/BSV-OS
> 
> Tel. +49 30 726112-284
> 
> 
> -----Original Message-----
> From: hono-dev-bounces@xxxxxxxxxxx <hono-dev-bounces@xxxxxxxxxxx> On 
> Behalf Of Hudalla Kai (INST/ECS4)
> Sent: Donnerstag, 26. April 2018 09:20
> To: hono-dev@xxxxxxxxxxx
> Subject: Re: [hono-dev] Connect Hono to the Azure Service Bus
> 
> On Wed, 2018-04-25 at 12:09 +0000, Graser Leon (INST-CSS/BSV-OS) wrote:
> > Hi all,
> >  
> > For a project I currently try to connect Hono to the Azure Service 
> > Bus via AMQP. Therefore, I created an instance of the Serviec Bus on 
> > Microsoft Azure and an access policy.
> > 
> 
> Are you running Hono on Azure as well? Are your deploying Hono to 
> Docker Swarm or Kubernetes/OPenShift?
> 
> > In the hono-service-messaging-config.yml file I tried to replace the
> > hono- dispatch-router with the service bus details like this:
> >                   downstream:
> >                                 host: az-service-bus.hono
> >                                 port: 5672
> >                                 tlsEnabled: true
> >                                 password: <primary key generated by Azure>
> >                                 username: hono-messaging where the 
> > az-service-bus.hono maps to the respective url of the service bus 
> > <name>.servicebus.windows.net.
> 
> What do you mean by "maps to the respective URL"? The "host" variable 
> is supposed to hold the DNS name of the service you want to connect 
> to. So, setting it to "az-service-bus.hono" would require that name to 
> be resolvable to the IP address of the Azure Service Bus endpoint you want to connect to.
> 
> > I’m afraid I’m using the wrong parameters to connect Hono to the service bus.
> > Is it possible to connect Hono to the Azure Service Bus? Is it a 
> > matter of parameters? Or did I simply miss something in the 
> > architecture of Hono?
> > 
> > Cheers,
> > Leon
> >  
> >  
> > Mit freundlichen Grüßen / Best regards
> > 
> > Leon Graser
> > INST-CSS/BSV-OS
> > 
> > Tel. +49 30 726112-284
> > 
> > _______________________________________________
> > hono-dev mailing list
> > hono-dev@xxxxxxxxxxx
> > To change your delivery options, retrieve your password, or 
> > unsubscribe from this list, visit 
> > https://dev.eclipse.org/mailman/listinfo/hono-dev
> 
> _______________________________________________
> hono-dev mailing list
> hono-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or 
> unsubscribe from this list, visit 
> https://dev.eclipse.org/mailman/listinfo/hono-dev
> _______________________________________________
> hono-dev mailing list
> hono-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or 
> unsubscribe from this list, visit 
> https://dev.eclipse.org/mailman/listinfo/hono-dev
_______________________________________________
hono-dev mailing list
hono-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/hono-dev

Back to the top