KubernetesHook

Kubernetes

Creates Kubernetes API connection.

View on GitHub

Last Updated: Apr. 27, 2021

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_idstrThe kubernetes connection to Kubernetes cluster.

Documentation

Creates Kubernetes API connection.

  • use in cluster configuration by using extra__kubernetes__in_cluster in connection

  • use custom config by providing path to the file using extra__kubernetes__kube_config_path

  • use default config by providing no extras

This hook check for configuration option in the above order. Once an option is present it will use this configuration.

See also

For more information about Kubernetes connection: /connections/kubernetes

param conn_id

The kubernetes connection to Kubernetes cluster.

type conn_id

str

Was this page helpful?