Question: When deploying a service on `kubernetes` that one wants to be publicly accessible, the way around is to declare its type as `LoadBalancer`

What is the equivalent way to expose a service endpoint on MESOS/DCOS?

Answer: 
This method works for all domains also with Android 9. Add this property to your Manifest like this:

```
<application
    ...
   android:usesCleartextTraffic="true"
    ...>
</application>

```
```
     //  Step 1:    in manifest :
  <application
        android:networkSecurityConfig="@xml/cleartextTrafficPermitted">
    //   Step 2:       
                  <uses-library
                         android:name="org.apache.http.legacy"
                        android:required="false" />
  </application>

    // Step 3 Create drawable XML>>cleartextTrafficPermitted  :

      <?xml version="1.0" encoding="utf-8"?>
        <network-security-config>
           <base-config cleartextTrafficPermitted="true">
           <trust-anchors>
              <certificates src="system" />
           </trust-anchors>
           </base-config>
        </network-security-config>

```