# io.k8s.api.core.v1.HostAlias

From **Kubernetes**.

HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.

- Type: `object`

## Properties

### `hostnames`

- Required: false
- Type: `array`

Hostnames for the above IP address.

### `ip`

- Required: true
- Type: `string`

IP address of the host file entry.

## JSON Schema

```json
{"description":"HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.","properties":{"hostnames":{"description":"Hostnames for the above IP address.","items":{"type":"string"},"type":"array","x-kubernetes-list-type":"atomic"},"ip":{"default":"","description":"IP address of the host file entry.","type":"string"}},"required":["ip"],"type":"object"}
```
