Search code examples
kubernetesopenshiftopenshift-origin

OutOfMemoryKilled when I try to build my angular code


I tried to build angular js application in my openshidt free account : openshift.com

The issue is when I build angular project dependencies are so big that I need 1gi for the build.

And I don't know why openshift limit the memory to 25%.

I tried to add resources in my config : But still limit to 25%

resources:
  requests: 
    cpu: "100m"
    memory: "1Gi"

Hope you have any idea for this.

Thanks

François


Solution

  • Setting the memory request does not have an effect on OpenShift Online Starter (the "free account on openshift.com"). The limit would default to 512 MiB and other values (requests, CPU limit) will be set by the ClusterResourceOverride admission controller that is in place. In order to have your build use up to 1 GiB memory, you should specify only the memory limit within the build configuration:

      resources:
        limits:
          memory: 1Gi