You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2019/02/13 17:13:04 UTC

[GitHub] PaulW edited a comment on issue #4660: [AIRFLOW-3819] - Allow the configuration of a global default for work…

PaulW edited a comment on issue #4660: [AIRFLOW-3819] - Allow the configuration of a global default for work…
URL: https://github.com/apache/airflow/pull/4660#issuecomment-463284495
 
 
   Setting this directly from within k8s (in my case through helm) does indeed work, for example:
   
   ```
   apiVersion: v1
   kind: LimitRange
   metadata:
     name: worker-pod-limit
   spec:
     limits:
     - default:
         memory: 1000Mi
         cpu: 1
       defaultRequest:
         memory: 500Mi
         cpu: 0.5
       type: Container
   ```
   
   Has this effect within the yaml config for the pod:
   
   ```
   apiVersion: v1
   kind: Pod
   metadata:
     annotations:
       cni.projectcalico.org/podIP: x.x.x.x/32
       kubernetes.io/limit-ranger: 'LimitRanger plugin set: cpu, memory request for container
         base; cpu, memory limit for container base'
   ...
       resources:
         limits:
           cpu: "1"
           memory: 1000Mi
         requests:
           cpu: 500m
           memory: 500Mi
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services