> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# observer

# `prefect_kubernetes.observer`

## Functions

### `configure` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/integrations/prefect-kubernetes/prefect\_kubernetes/observer.py#L336](https://github.com/PrefectHQ/prefect/blob/main/src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py#L336)</sup>

```python theme={null}
configure(settings: kopf.OperatorSettings, **_)
```

### `initialize_clients` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/integrations/prefect-kubernetes/prefect\_kubernetes/observer.py#L347](https://github.com/PrefectHQ/prefect/blob/main/src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py#L347)</sup>

```python theme={null}
initialize_clients(logger: kopf.Logger, **kwargs: Any)
```

### `cleanup_fn` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/integrations/prefect-kubernetes/prefect\_kubernetes/observer.py#L367](https://github.com/PrefectHQ/prefect/blob/main/src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py#L367)</sup>

```python theme={null}
cleanup_fn(logger: kopf.Logger, **kwargs: Any)
```

### `start_observer` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/integrations/prefect-kubernetes/prefect\_kubernetes/observer.py#L1294](https://github.com/PrefectHQ/prefect/blob/main/src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py#L1294)</sup>

```python theme={null}
start_observer()
```

Start the observer in a separate thread.

### `stop_observer` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/integrations/prefect-kubernetes/prefect\_kubernetes/observer.py#L1345](https://github.com/PrefectHQ/prefect/blob/main/src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py#L1345)</sup>

```python theme={null}
stop_observer()
```

Stop the observer thread.
