Skip to main content

init_in_cluster

Initializes the Flyte environment within a cluster, configuring project, domain, API key, and endpoint settings based on provided arguments or environment variables. It also handles insecure connection settings and disables keyring storage for ephemeral pod environments.

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 within a Kubernetes cluster, configuring the remote connection parameters based on provided arguments or environment variables. This function is used to set up the necessary context for interacting with a Flyte deployment from within a cluster.

Parameters

NameTypeDescription
org`strNone` = None
project`strNone` = None
domain`strNone` = None
api_key`strNone` = None
endpoint`strNone` = None
insecurebool = FalseA boolean flag indicating whether to use an insecure connection (e.g., without SSL/TLS verification). This can also be overridden by the _U_INSECURE environment variable.

Returns

TypeDescription
dict[str, typing.Any]A dictionary containing the remote connection arguments used for initialization, including endpoint, API key, and insecurity settings.