Mike Christensen
Mike Christensen

Reputation: 91628

Is it possible to add custom DNS entries to the Service Fabric DNS service

Service Fabric has its own built in DNS service that will automatically resolve service names to one of the IPs in the cluster running that service. However, is it possible to add manual entries to this DNS server that do not map to a Service Fabric service? For example, if I wanted rediscache.cluster to resolve to 10.0.100.4, is that possible?

The alternative would be to make this a public DNS entry, however we'd rather hide our internal network addresses from the public. Thanks!

Upvotes: 0

Views: 747

Answers (2)

Mike Christensen
Mike Christensen

Reputation: 91628

Confirmed with Microsoft this is not possible. Service Fabric DNS service is for resolution of SF services only. There's no way to register services running external to it.

A possible alternative option is to use an Azure Private DNS zone and connect it to the subnet the Service Fabric cluster is running in.

Upvotes: 1

LoekD
LoekD

Reputation: 11470

I don't think you can add custom records to the DNS service.

As alternatives:

  • you could consider to use a containerized Redis and deploy that in your cluster. This way it will be accessible through the DNS Service.

e.g. sfctl compose create --deployment-name MyRedisApp --file-path docker-compose.yml

  • you can run a reverse proxy service that forwards traffic to the real Redis server in the network

e.g. sfctl service create --app-id MyRedisProxyApp --name fabric:/MyRedisProxyApp/MyRedisProxy --service-type MyRedisProxyType --stateless --singleton-scheme --instance-count 1 --dns-name rediscache.cluster

Upvotes: 1

Related Questions