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,

Hono is running on Azure using their managed Kubernetes service https://azure.microsoft.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/service/
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.


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

Back to the top