Reputation: 91628
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
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
Reputation: 11470
I don't think you can add custom records to the DNS service.
As alternatives:
e.g. sfctl compose create --deployment-name MyRedisApp --file-path docker-compose.yml
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