tm1701
tm1701

Reputation: 7581

Openshift 3 free: mini SpringBoot app + Mysql immediately exceeds the quota limits?

When experimenting with Openshift v3 - I could create and deploy a very simple webapplication with Wildfly & postgres.

When trying to create a very simple SpringBoot application (as a WAR) with Mysql (with 1 table), the MySql volume storage immediately exceeds the quota. As a result the very simple application cannot run properly.

Error creating: pods "springbootmysql-8-" is forbidden: exceeded quota: compute-resources, requested: limits.cpu=1,limits.memory=512Mi, used: limits.cpu=2,limits.memory=1Gi, limited: limits.cpu=2,limits.memory=1Gi 19 times in the last 11 minutes

Update: now I configured both pod's with 480Mi memory - the memory quota's are not exceeded.

I now get an error message stoping the build and deployment:

Error creating: pods "springbootmysql6-2-" is forbidden: exceeded quota: compute-resources, requested: limits.cpu=957m,limits.memory=490Mi, used: limits.cpu=1914m,limits.memory=980Mi, limited: limits.cpu=2,limits.memory=1Gi

Upvotes: 2

Views: 389

Answers (1)

Graham Dumpleton
Graham Dumpleton

Reputation: 58523

On OpenShift Online Starter, if running both a database and frontend with both using 512MB each, you only have enough resources to use the Recreate deployment strategy. You will need to go into the deployment configuration for the front end and change the deployment strategy from Rolling to Recreate.

If after making the change it is still having the same issue, scale down the number of replicas of the front end to 0, and then back to 1. This will ensure that Kubernetes is not stuck in the prior state since it was still trying to deploy under the old settings. Things should then be okay.

Upvotes: 2

Related Questions