GKE LimitRange limits defaults cpu to 100m

11/10/2018

Does anyone know how to override what seems to be the default LimitRange in GKE which sets the default request for CPU to 100m?

I've previously updated the limit to be 10m which is still overkill but better than the default using the following manifest;

apiVersion: v1
kind: LimitRange
metadata:
  name: limits
  namespace: default
spec:
  limits:
  - defaultRequest:
      cpu: 10m
    type: Container

This has since been overwritten back to 100m. Can I disable this behaviour?

Clearly I could update my manifest file to always include the request amount on containers but I'm interested to understand how this works in GKE and if it's documented.

-- Tim Reynolds
google-cloud-platform
google-kubernetes-engine
kubernetes

1 Answer

11/16/2018

From reading the attached github article, there is a Limit Range set within the default namespace. If you would like to change the Limit Range, you can create a Limit Range in a non-default namespace. You can read on how to create a Limit Range in a non default namespace here.

-- Jason
Source: StackOverflow