# io.k8s.api.core.v1.ContainerRestartRule

From **Kubernetes**.

ContainerRestartRule describes how a container exit is handled.

- Type: `object`

## Properties

### `action`

- Required: true
- Type: `string`

Specifies the action taken on a container exit if the requirements are satisfied. The only possible value is "Restart" to restart the container.

### `exitCodes`

- Required: false
Represents the exit codes to check on container exits.

## JSON Schema

```json
{"description":"ContainerRestartRule describes how a container exit is handled.","properties":{"action":{"description":"Specifies the action taken on a container exit if the requirements are satisfied. The only possible value is \"Restart\" to restart the container.","type":"string"},"exitCodes":{"allOf":[{"$ref":"#/components/schemas/io.k8s.api.core.v1.ContainerRestartRuleOnExitCodes"}],"description":"Represents the exit codes to check on container exits."}},"required":["action"],"type":"object"}
```
