damp-hamburger-67475
03/21/2025, 12:20 PMremote = FlyteRemote(
config=Config.for_endpoint(
endpoint="flyteadmin.flyte.svc.cluster.local:81",
insecure=True
),
default_project="flytesnacks",
default_domain="development"
)
@eager(remote=remote)
async def my_teast(input_file: str, output_file: str, open_api_key: str):
pass
However, when the task runs in the pod:
│ {"asctime": "2025-03-21 12:18:46,341", "name": "flytekit", "levelname": "WARNING", "message": "Auto-created config object to pick up env vars Config(platform=PlatformConfig(endpoint='flyteadmin.flyte.svc.cluster.local:81', insecure=False,
clean-glass-36808
03/21/2025, 5:51 PM**Environment Variables**: Users can specify these at compile time, but when your task is run, Flyte Propeller will
also set configuration to ensure correct interaction with the platform. The environment variables must be specified
with the format ``FLYTE_{SECTION}_{OPTION}``, all in upper case. For example, to specify the
:py:class:`PlatformConfig.endpoint <flytekit.configuration.PlatformConfig>` setting, the environment variable would
be ``FLYTE_PLATFORM_URL``.
https://github.com/flyteorg/flytekit/blob/5503ee5e232fdbc633af39c7f4539a04906102fc/flytekit/configuration/__init__.py#L20-L24
So maybe try FLYTE_PLATFORM_INSECURE
?clean-glass-36808
03/21/2025, 5:52 PMkwargs = set_if_exists(kwargs, "endpoint", _internal.Platform.URL.read(config_file))
so I think the insecure env variable would work
kwargs = set_if_exists(kwargs, "insecure", _internal.Platform.INSECURE.read(config_file))
early-addition-41415
03/21/2025, 6:40 PMauthType: Pkce
insecure: false
insecureSkipVerify: false
logger:
show-source: true
level: 6
early-addition-41415
03/21/2025, 6:40 PMclean-glass-36808
03/21/2025, 6:45 PMconfig.yaml
applies to the flyte control/data plane and not necessarily the pod your container runs in.damp-hamburger-67475
03/21/2025, 6:50 PMearly-addition-41415
03/21/2025, 7:20 PMdamp-hamburger-67475
03/21/2025, 8:15 PMdamp-hamburger-67475
03/21/2025, 8:15 PMaverage-finland-92144
03/25/2025, 3:03 PMi will try FLYTE_PLATFORM_INSECUREDid this work for you?