# flyte-deployment

Jan Fiedler

08/29/2023, 2:25 PM
Hey Flyte-on-Azure warriors đź‘‹ I am now at the point where i have a healthy Flyte deployment on Azure with ingress and tls in place. With the custom stow storage configuration for azure i am also able to run simple workflows. To make it work, i needed to set env variables (
) in the pods that run my Flyte Tasks. In the future i would like to use workload identities instead of storage account keys but thats another topic. My Question: Is it even possible to connect to 2 different azure storage accounts with flytekit / fsspec and the way flyte works? What i have in mind is having a cluster storage account for Flyte (metadata) and a some user storage account where i upload and download user data via Flytefile / Flytedirectories. Hope this made sense 🙂

Thomas Newton

09/12/2023, 4:54 PM
Did you make any progress on this. I've been working on the same problem. I found that setting
cause varying levels of disruption to other libraries that try to authenticate to Azure. I concluded that I can't accept a solution that sets any pod level Azure auth e.g. standard environment variables. I can think of 2 ways to do this: 1. Use a single credential and fix so that Azure default credentials works in flyte. a. Use your fix from b. Fix how paths and fsspec filesystems are managed so that it extracts the storage account name from the path. c. Use one role based authentication method e.g. service principal or workload identity for everything in the pod. d. This almost worked apart from the
is not a valid Azure fsspec path. It looks like its
{.configmap.remoteData.schema}://{.storage.custom.container}/{.configmap.cor.propeller.metadata-prefix}/{some unique ID}
but a valid path would look something like
. I think this is generated somewhere in flytepropellor,path%20to%20store%20the%20data.&amp;text=In%20the%20sandbox%2C%20the%20default,root%20of%20the%20local%20bucket 2. Add explicit Azure storage configs that don't overlap with Azure defaults. a. Add an Azure config similar to
that has authentication attributes. b. Set the new flyte specific Azure config options using the pod template. c. Tasks are now free to use whatever azure authentication they like for everything else. d. For flyte's authentication we can use any method that does not require pod level configuration e.g. pod identity or workload identity. e. I actually have a working version of this Use
environment variables.
cc @Victor Delépine and maybe @Yee is interested too.

Jan Fiedler

09/12/2023, 5:49 PM
Definitely sounds like the right approach. Haven’t found time yet to tackle this and won’t until mid of next week
Hey Tom, i am back from vacation. Im interested what do you think about my comment