Air-flow dag example leveraging Kubernetes Operator to deploy a pod in Kubernetes Cluster using cluster api_key

12/14/2018

I have followed the steps from here and successfully launched Pods in Minikube.

Now I'm trying to launch Pods in Enterprise Kubernetes Cluster.

For that how to wrap api_key along with the KubernetesPodOperator arguments. I looked into the KubernetesPodOperator code and didn't find any arguments for api_key.

Could somebody help me out here with an example?

-- Sri
airflow
kubernetes
minikube

1 Answer

12/18/2018

Is the api_key in a Kubernetes config file or the cluster context? You can specify a config file or cluster context. The stuff in the Airflow config is mostly about the Kubernetes Executor and not the Operator.

-- dlamblin
Source: StackOverflow