KIRY4 edited a comment on issue #9374:
URL: https://github.com/apache/airflow/issues/9374#issuecomment-649149025


   Example of usage:
   ```
   apiVersion: v1
   kind: ConfigMap
   metadata:
     name: airflow-cm
     namespace: airflow
   data:
     k8spodstolerations: '[{ "key": "type", "operator": "Equal", "value": 
"tool", "effect": "NoSchedule" }]'
     k8spodsaffinity: 
'{"nodeAffinity":{"requiredDuringSchedulingIgnoredDuringExecution":{"nodeSelectorTerms":[{"matchExpressions":[{"key":"type","operator":"In","values":["tool"]}]}]}}}'
   ```
   
   In values.yaml:
   ```
     extraEnv:
       - name: AIRFLOW__KUBERNETES__TOLERATIONS
         valueFrom:
           configMapKeyRef:
             name: airflow-cm
             key: k8spodstolerations
       - name: AIRFLOW__KUBERNETES__AFFINITY
         valueFrom:
           configMapKeyRef:
             name: airflow-cm
             key: k8spodsaffinity
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to