Skip to content

Allow the ServiceAccount to be configured on k8s jobs that the agent creates #2547

Closed
@pwnage101

Description

Current behavior

With KubernetesJobEnvironment, I'm able to custom specify the k8s service account to use in my pods that run the flows. However, there seems to be an intermediate k8s job created by the agent (which runs prefect execute cloud-flow) that is just hard-coded to use the default service account, and there's no way to configure it.

The way that I wished to configure my k8s ACLs was to only allow the prefect:prefect service account to create jobs in the prefect namespace, but without this feature I must also allow prefect:default (the default service account in the prefect namspace) to create jobs in the prefect namespace, which is inconsistent with the rest of my k8s infrastructure.

Proposed behavior

To be able to somehow configure the service account on that intermediate job.

On the prefect slack, Josh Meek suggests this should be possible and recommended that I submit this issue. https://prefect-community.slack.com/archives/CL09KU1K7/p1588186263344500?thread_ts=1588182344.339300&cid=CL09KU1K7

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementAn improvement of an existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions