Skip to content

Allow bytewax materialization engine to use in_cluster config  #3746

@james-crabtree-sp

Description

@james-crabtree-sp

Is your feature request related to a problem? Please describe.
The bytewax_materialization_engine uses the kubernetes.config.load_kube_config method to load kubernetes config. This method only supports loading config from kubeconfig file. We want to run this materialization in an airflow task running in EKS and use in_cluster config so that we don't have to mount the config inside of our image.

Describe the solution you'd like
The bytewax_materialization_config should use the kubernetes.config.load_config method to try loading from a kubeconfig file and fall back to in_cluster config if it is not found.

Describe alternatives you've considered
The current work around is to create a secret file in kubernetes with your kubeconfig file and mount it inside your image.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions