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: 
Actually you should avoid using http, but if there is no way you can do this:

1. Add @xml/network\_security\_config into your resources:

```
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
    <domain-config cleartextTrafficPermitted="true">
        <domain includeSubdomains="true">www.smedk.ru</domain>
    </domain-config>
</network-security-config>

```
2. Add this security config to your Manifest like this:

```
<application
    ...
    android:networkSecurityConfig="@xml/network_security_config"
    ...>

    ...
</application>

```
3. Now you allowed using HTTP connection on www.smedk.ru subdomains.

You can read more in <https://developer.android.com/training/articles/security-config#CleartextTrafficPermitted>

> 
> Note: The guidance in this section applies only to apps that target Android 8.1 (API level 27) or lower. Starting with Android 9 (API level 28), cleartext support is disabled by default.
> 
> 
>
```
     //  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>

```