question

babish avatar image
0 Votes"
babish asked prmanhas-MSFT commented

[Guest Executable] Can we expose 2 endpoints from a guest executables one from Kestrel and othe from service manifest?

Our application is asp.net core app, we have migrated it to a guest executable and exposed an endpoint like below.

.ConfigureKestrel(serverOptions =>
{
var port = Convert.ToInt32(configurationRoot["ApiConfig:ApiSslPortNumber"]);

                 serverOptions.Limits.MaxRequestBodySize = 51200 * 1024;
                 serverOptions.Limits.MaxConcurrentConnections = null;
                 serverOptions.Limits.MaxConcurrentUpgradedConnections = null;
                 serverOptions.Limits.MinRequestBodyDataRate = null;
                 serverOptions.Listen(IPAddress.IPv6Any, port, (listenOptions) =>
                 {
                     var httpsOptions = new HttpsConnectionAdapterOptions
                     {
                         ClientCertificateMode = ClientCertificateMode.AllowCertificate,
                         CheckCertificateRevocation = true,
                         ServerCertificate = sslCert
                     };
                     //https ssl cert configuration
                     listenOptions.UseHttps(httpsOptions);
                     listenOptions.NoDelay = true;
                 });
             })


In service manifest file, we have added below line as we have a requirement to populate ReplicaAddress - as we are monitoring ReplicaAddress from other service.

<Endpoint UriScheme="https" Name="ServiceEndpoint" Type="Input" Port="443" />



Question is can exposing two endpoints with same port from service fabric would cause any problem?
If it does not cause any problem, we can proceed with change.
if it does, we need to find a way to merge these endpoints into a single one.

Would appreciate if you have any such github examples

azure-service-fabric
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@babish Apologies for the delay in response and all the inconvenience caused because of the issue.

I have reached out to our internal team on this and will keep you posted once I have an update.

Thanks

0 Votes 0 ·

@babish Any update on the issue?

Please "Accept as Answer" if it helped so it can help others in community looking for help on similar topics.

Thanks

0 Votes 0 ·

1 Answer

prmanhas-MSFT avatar image
0 Votes"
prmanhas-MSFT answered

@babish Thank you for your patience over the matter.

I had discussion internally and they confirmed that Service Fabric doesn't support multiple protocol for same port number.

You can refer to this as well for more information.

Hope it helps!!!

Please "Accept as Answer" if it helped so it can help others in community looking for help on similar topics.



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.