# Add on: host-access

**URL:** <https://discuss.kubernetes.io/t/add-on-host-access/11260>\
**Category:** microk8s\
**Tags:** docs\
**Created:** [June 4, 2020, 3:09pm UTC](https://discuss.kubernetes.io/t/add-on-host-access/11260 "2020-06-04T15:09:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![evilnick](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/evilnick/32/3481_2.png) [@evilnick](https://discuss.kubernetes.io/u/evilnick)\
**Post date:** [June 4, 2020, 3:09pm UTC](https://discuss.kubernetes.io/t/add-on-host-access/11260/1 "2020-06-04T15:09:30Z")

</div>

The host-access addon enables access to services running on the host machine via a fixed IP.  
This becomes useful when your machine changes IPs as you hop through different networks.

You can install this addon with:

```bash
microk8s enable host-access

```

A new local network interface named `lo:microk8s` is created with a default IP address of `10.0.1.1`.

Alternatively, you can provide a different IP address when enabling the addon:

```bash
microk8s enable host-access:ip=<desired-ip>

```

---

<div class="post-metadata">

**Author:** ![tinjaw](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/tinjaw/32/5674_2.png) [@tinjaw](https://discuss.kubernetes.io/u/tinjaw)\
**Post date:** [August 17, 2020, 1:55pm UTC](https://discuss.kubernetes.io/t/add-on-host-access/11260/2 "2020-08-17T13:55:57Z")

</div>

What are acceptable ip addresses? Can this be the same as eth0? I want to expose my cluster to my LAN. Can I use host-access to do this?

---

<div class="post-metadata">

**Author:** ![kjackal](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/kjackal/32/1750_2.png) [@kjackal](https://discuss.kubernetes.io/u/kjackal)\
**Post date:** [August 18, 2020, 6:59am UTC](https://discuss.kubernetes.io/t/add-on-host-access/11260/3 "2020-08-18T06:59:10Z")

</div>

@tinjaw this addon is not for exposing the cluster to your LAN. The use case for this addon is when you have a service running on your localhost (eg a DB) and you need the in-cluster services to reach that service through a fixed IP. Your localhost may change IPs because for example it is a laptop or it gets its IPs from a dhcp server so this addon will create an interface on the host with an IP that you configure.

---

<div class="post-metadata">

**Author:** ![tinjaw](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/tinjaw/32/5674_2.png) [@tinjaw](https://discuss.kubernetes.io/u/tinjaw)\
**Post date:** [August 18, 2020, 4:12pm UTC](https://discuss.kubernetes.io/t/add-on-host-access/11260/4 "2020-08-18T16:12:15Z")

</div>

Thanks for that info. That clears things up for me.
