AsyncKubernetesHook

Kubernetes

Hook to use Kubernetes SDK asynchronously.

View on GitHub

Last Updated: Apr. 5, 2023

Access Instructions

Install the Kubernetes provider package into your Airflow environment.

Import the module into your DAG file and instantiate it with your desired params.

Parameters

conn_idThe kubernetes connection to Kubernetes cluster.
client_configurationOptional dictionary of client configuration params. Passed on to kubernetes client.
cluster_contextOptionally specify a context to use (e.g. if you have multiple in your kubeconfig.
config_filePath to kubeconfig file.
in_clusterSet to True if running from within a kubernetes cluster.
disable_verify_sslSet to True if SSL verification should be disabled.
disable_tcp_keepaliveSet to True if you want to disable keepalive logic.

Documentation

Hook to use Kubernetes SDK asynchronously.

Was this page helpful?