Code Monkey home page Code Monkey logo

Comments (6)

kentwelcome avatar kentwelcome commented on June 14, 2024

Hi sstiene,

Based on the logs you provide, seems keycloak-postgres-0 can not be scheduled.

...
keycloak-postgres-0 0/1 Pending 0 26m
...

I guess it might be caused by keycloak-postgres-0 can not mount the pvc.
Can you please also help to run the following commands?

kubectl get pvc -n hub
kubectl get storageclass

Thanks.

from primehub.

sstiene avatar sstiene commented on June 14, 2024

kubectl get pvc -n hub
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
data-keycloak-postgres-0 Bound pvc-8b6f35ef-1a32-4222-ba44-04ba0c58fcbd 8Gi RWO microk8s-hostpath 2m10s
export-primehub-minio-0 Bound pvc-f9dce678-1e75-4b85-aa66-3b8e24260acd 10Gi RWO microk8s-hostpath 2m10s
hub-db-dir Bound pvc-980004d2-4438-43cc-b9b8-bcc4b9ac97ab 1Gi RWO microk8s-hostpath 2m11s
primehub-store Bound primehub-store 64Gi RWX rclone 2m11s

kubectl get storageclass
NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
microk8s-hostpath (default) microk8s.io/hostpath Delete Immediate false 6m39s
rclone kubernetes.io/no-provisioner Delete Immediate false 3m34s

from primehub.

kentwelcome avatar kentwelcome commented on June 14, 2024

Seems the pvc of keycloak-postgres had been provisioned successfully.
Looks like the pending issue is not caused by unable mount pvc.

Another reason for pod pending could be caused by resources are not enough. (CPU or Memory)
May I ask how many vCPU and Memory you configured for this virtual machine?
Or you can run the following command to show the reason why keycloak-postgres-0 is pending

kubectl describe pod -n hub keycloak-postgres-0

In general, PrimeHub needs at least 4vCPU and 8G memory to run.
Thanks

from primehub.

sstiene avatar sstiene commented on June 14, 2024

Yes, that might be the case. I only set up a very small test environment with 2 CPUs. I will extend it and come back to you. Thanks. Does it make sense to add a resource check in the install script and give a warning if CPU, RAM, MEM,... is not sufficient?

from primehub.

kentwelcome avatar kentwelcome commented on June 14, 2024

It's a great idea! We will add your feedback to our milestone.
Truly thanks for your suggestion.

from primehub.

stale avatar stale commented on June 14, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from primehub.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.