init_in_cluster
Initializes the environment for in-cluster execution by resolving configuration from environment variables or provided arguments. It configures connection parameters such as organization, project, domain, and security settings, then invokes the core initialization routine with keyring storage disabled.
@syncify
async def init_in_cluster(
org: str | None = None,
project: str | None = None,
domain: str | None = None,
api_key: str | None = None,
endpoint: str | None = None,
insecure: bool = False,
) -> dict[str, typing.Any]: ...
Initializes the Flyte environment for execution within a cluster, automatically resolving configuration from internal environment variables. This function is used to set up the runtime context for pods, disabling keyring storage to optimize cold-start performance in ephemeral environments.
Parameters
| Name | Type | Description |
|---|---|---|
| org | `str | None` = None |
| project | `str | None` = None |
| domain | `str | None` = None |
| api_key | `str | None` = None |
| endpoint | `str | None` = None |
| insecure | bool = false | Whether to use an insecure connection; automatically set to True if the endpoint is localhost or if the _U_INSECURE environment variable is enabled. |
Returns
| Type | Description |
|---|---|
dict[str, typing.Any] | A dictionary of configuration arguments used to initialize the remote connection, including endpoint, security settings, and authentication keys. |