# K8sManifestResource.WithClusterReadyTimeout

- Module: [CommunityToolkit.Aspire.Hosting.Kind](/reference/api/go/communitytoolkit.aspire.hosting.kind.md)
- Defined on: [K8sManifestResource](/reference/api/go/communitytoolkit.aspire.hosting.kind/k8smanifestresource.md)
- Version: `13.5.1-beta.895`
- Kind: `method`

Sets the maximum time to wait for the Kubernetes API to become reachable before running `kubectl apply`.

## Remarks

Use this when the cluster control plane can take longer than the default 60 seconds
to begin serving the Kubernetes API, such as on slower developer machines or busy CI hosts.

## Definition

```go
type K8sManifestResource interface {
    // ... omitted for brevity
    WithClusterReadyTimeout(timeout float64) K8sManifestResource
}
```

## Signature

```go
WithClusterReadyTimeout(timeout float64) K8sManifestResource
```

## Parameters

- `timeout` (`float64`) -- The total readiness budget shared across repeated `kubectl cluster-info` probes. Values are normalized to whole seconds and must fall within the supported timeout range.

## Returns

[`K8sManifestResource`](/reference/api/go/communitytoolkit.aspire.hosting.kind/k8smanifestresource.md) -- A reference to the `IResourceBuilder`.

Returns a handle; failures surface later via `Err()`.

## Defined on

- [K8sManifestResource](/reference/api/go/communitytoolkit.aspire.hosting.kind/k8smanifestresource.md) -- `handle`
