nais / naisd

nais deployment daemon
https://nais.io
MIT License
27 stars 10 forks source link

Resources #6

Closed audunstrand closed 7 years ago

audunstrand commented 7 years ago

We must support resources, both requests and limits We need both default values and the abiility to set values i nais.yaml

We should append the following to nais.yaml

resources: # Optional. See: http://kubernetes.io/docs/user-guide/compute-resources/
  limits:
    cpu: 500m # app will have its cpu usage throttled if exceeding this limit
    memory: 512Mi # app will be killed if exceeding these limits
  requests: # app will be scheduled on nodes with at least this amount resources available
    cpu: 200m
    memory: 256Mi