-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deployment to Google Kubernetes fails #11104
Comments
@BLKingLLC : Can you please provide the |
{ |
@BLKingLLC : I tried this out using the same I had to increase the memory for Elasticsearch, since otherwise Elasticsearch fails to start and thus the application fails on startup as well. After increasing the memory allocation everything seems to run fine. 😄 Please try increasing the memory to Elasticsearch. Chane lines 41-47 in resources:
requests:
memory: '1Gi'
cpu: '2'
limits:
memory: '2Gi'
cpu: '2' I can look into increasing the memory requirement for Elasticsearch if this works for you; let us know. 🤔 |
@SudharakaP I tried your modification and it didn't help. What did help, however was changing my google cluster virtual CPUs; so I think what needs to happen is just a documentation update to state what the minimum virtual CPUs and Memory are for a full deployment. I do, however, still get a failure on loading the burgershop app itself. It crashes with this error |
@BLKingLLC : Can you elaborate more on what change you did for your virtual CPUs; what memory did you use? I can do some more testing on this to find out some reasonable defaults. 😄 It seems that your app cannot connect to the elasticsearch cluster. In my case I had the same error but when the memory was increased it went away. Could you share the elasticsearch cluster logs? I think you can access them through the GCP Stackdriver logging. 😄 |
@SudharakaP I was originally creating the cluster with this command Even with the cpu/memory change that you suggested I get this error |
Indeed you need quite a bit of compute resources, to run the JHipster Console in Kubernetes. However it's hard to say what the absolute minimum would be. @BLKingLLC could you share with us the specs of the cluster which was "too small" and the one which was "big enough". |
The small/default cluster had 3 vCPUs and 11.25GB of memory whereas the high-cpu cluster had 8 vCPUs and 30.0GB of memory. |
if I understand well, it should be fixed by #11303 |
Overview of the issue
During kubectl-apply.sh
Received error
error: error validating "console/jhipster-elasticsearch.yml": error validating data:
ValidationError(StatefulSet.spec): missing required field "selector" in
io.k8s.api.apps.v1.StatefulSetSpec; if you choose to ignore these errors, turn validation off with --
validate=false
Logstash Deployment Fails “Pods are pending”
jhipster-import-dashboard Job fails on “Pods are pending”
JHipster Console starts, but when you access it you will see that the elasticsearch plugin failed. No pages will load, only the status page is displayed with the error “ Unable to connect to Elasticsearch at http://jhipster-elasticsearch:9200/.”
Motivation for or Use Case
Without the JHipster Console, logstash, and elasticsearch JHipster is not at it's full capability.
Reproduce the error
Steps are really long, I wrote a confluence article and made it public here https://blkingllc.atlassian.net/wiki/spaces/JHIP/pages/723582987/Google+Kubernetes
Related issues
Not one that's open.
Suggest a Fix
Days worth of troubleshooting and I haven't found the solution :(
JHipster Version(s)
6.6.0
JHipster configuration
Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryNo Entities are configured.
Browsers and Operating System
Chrome Latest and Ubuntu; but using GKE Kubernetes
The text was updated successfully, but these errors were encountered: