# cpu

Set CPU resource limits for the pod.

```rhai
pod.cpu(requested, limit) -> Pod
```

## Parameters

- `requested` (int): Requested CPU in millicores
- `limit` (int): CPU limit in millicores

## Returns

Returns the `Pod` builder for method chaining.

## Examples

```rhai
// Request 0.5 CPU, limit to 1 CPU
let pod = namespace.pod("app")
    .image("myapp:latest")
    .cpu(500, 1000)
    .apply();

// Request 2 CPUs
let compute = namespace.pod("worker")
    .image("worker:latest")
    .cpu(2000, 4000)
    .apply();
```

## Notes

- This is a chainable method
- Values are in millicores (1000 = 1 CPU)
- Request is the guaranteed amount
- Limit is the maximum allowed
