# io.k8s.api.core.v1.TCPSocketAction

From **Kubernetes**.

TCPSocketAction describes an action based on opening a socket

- Type: `object`

## Properties

### `host`

- Required: false
- Type: `string`

Optional: Host name to connect to, defaults to the pod IP.

### `port`

- Required: true
Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.

## JSON Schema

```json
{"description":"TCPSocketAction describes an action based on opening a socket","properties":{"host":{"description":"Optional: Host name to connect to, defaults to the pod IP.","type":"string"},"port":{"allOf":[{"$ref":"#/components/schemas/io.k8s.apimachinery.pkg.util.intstr.IntOrString"}],"description":"Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME."}},"required":["port"],"type":"object"}
```
