Hi, I’m creating for my teams a Terraform module d...
# flyte-deployment
a
Hi, I’m creating for my teams a Terraform module deploying Flyte Helm Chart (
flyte-binary
) on EKS. I want to customise the creation of
projects
and
domains
with configuration (like
iam_role
). I found projects and domains mentioned in 2 places: https://github.com/flyteorg/flyte/blob/6b5994ff1d529416113b790897367a7c847c4650/charts/flyte-binary/values.yaml#L21-L22
Copy code
seedProjects:
      - flytesnacks
and https://github.com/flyteorg/flyte/blob/6b5994ff1d529416113b790897367a7c847c4650/charts/flyte-binary/eks-production.yaml#L32-L43
Copy code
inline:
    cluster_resources:
      customData:
      - production:
        - defaultIamRole:
            value: <FLYTE_USER_IAM_ARN>
      - staging:
        - defaultIamRole:
            value: <FLYTE_USER_IAM_ARN>
      - development:
        - defaultIamRole:
            value: <FLYTE_USER_IAM_ARN>
How should I configure my
values.yaml
if I want to achieve this?
Copy code
project1:
  sandbox:
    defaultIamRole: role1
  dev:
    defaultIamRole: role2
project2:
  dev:
    defaultIamRole: role3
d
Hey @Amadeusz Lisiecki glad to see you back. I'm trying to reproduce a working example for you but no luck yet
The current Terraform modules for Flyte on EKS don't include this as part of the implementation: https://github.com/unionai-oss/deploy-flyte/tree/main/environments/aws
a
I found this in flyte-core: https://github.com/flyteorg/flyte/blob/6b5994ff1d529416113b790897367a7c847c4650/charts/flyte-core/values.yaml#L502-L510 1. Does it mean that if I define domains they will be created for each project? 2. If I add this snippet to
inline
part of the
flyte-binary
config I can modify the domains?
d
1. If I add this snippet to
inline
part of the
flyte-binary
config I can modify the domains?
I guess we can try. It should land in the
flite-binary
configmap and the Cluster Resource Manager should create the corresponding namespaces
a
I try to figure out the difference between
values.yaml
of
flyte-binary
and
flyte-core
. AFAIK flyte-binary helm chart makes some transformation before saving the config in the ConfigMap?
d
for many of the sections, yes