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.
> 
> 
>
Same issue occurred in my project but all of the above answers not worked for me. so after wasting a whole day on this issue,what i got is

In Android version 8.1/9/10 **if your are using wrap\_content attribute for height in WebView ,then it will always set to 0dp**. In earlier versions(below 8.1) wrap\_content in WebView works fine. but from 8.1 and above you can give height either statically or you can set it dynamically through program using setLayoutParameters(). And also add extra attribute to Application ( android:usesCleartextTraffic="true" ) in android manifest.