numerous-hamburger-7178
07/11/2024, 6:10 PMaverage-finland-92144
07/11/2024, 7:06 PMnumerous-hamburger-7178
07/11/2024, 7:08 PMaverage-finland-92144
07/11/2024, 7:12 PMnumerous-hamburger-7178
07/11/2024, 7:13 PMaverage-finland-92144
07/11/2024, 7:19 PMaverage-finland-92144
07/11/2024, 8:10 PMnumerous-hamburger-7178
07/11/2024, 8:16 PMcluster_resource_manager
inside the helm chart to do this
e.g.
project_a (all domains) would use service_account_a and s3_bucket_a
project_b (all domains) would use service_account_b and s3_bucket_bfreezing-airport-6809
flytectl update workflow-execution-config --attrFile
domain: development
labels:
values:
aws-account: "test"
cluster: example1
project: cluster-example1
raw_output_data_config:
output_location_prefix: <s3://example1-bucket>
#security_context:
# run_as:
# k8s_service_account: default
freezing-airport-6809
numerous-hamburger-7178
07/15/2024, 2:57 PMripe-smartphone-56353
08/22/2024, 10:58 AM002_serviceaccount.yaml: |
apiVersion: v1
kind: ServiceAccount
metadata:
name: extra
namespace: '{{ namespace }}'
annotations:
<http://iam.gke.io/gcp-service-account|iam.gke.io/gcp-service-account>: 'flyte-prod-{{project|truncate(9, True, '')}}-{{domain|truncate(6, True, '')}}@<project>.<http://iam.gserviceaccount.com|iam.gserviceaccount.com>'
ripe-smartphone-56353
08/22/2024, 12:33 PM002_serviceaccount.yaml: |
apiVersion: v1
kind: ServiceAccount
metadata:
name: extra
namespace: '{{ namespace }}'
annotations:
<http://iam.gke.io/gcp-service-account|iam.gke.io/gcp-service-account>: 'flyte-p-{{ project }}-{{ domain }}@project.iam.gserviceaccount.com'
The problem with that is that if project and domain are too long it's very easy to go over the 30 character limit for the service accountaverage-finland-92144
08/22/2024, 4:40 PMextra
KSA instead of the default right? I guess as long as you keep the one project-domain:one namespace relationship that will work. The output bucket per project is what I don't see how to configure with Helmripe-smartphone-56353
08/23/2024, 7:50 AMSo this means you have to run executions so they use the extra KSA instead of the default right?Yes in this example it would. But I'm going to switch that service account to be the
default
after some testing.