Some issues regarding the creation of custom Sessions. #253
-
Hello, I previously asked some questions in the community regarding the customization of sessions. I have a general understanding of the process, but I encountered some issues during the code implementation. I would like to ask for your assistance.
The Specifically, my goal is to extend the CPU and memory fields in the session CR, allowing users to define the resources required for the IDE pod, instead of obtaining CPU and memory resources from the App Definition CR. I would like to inquire about how to resolve the issue with the mentioned |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, the Java library we are using to interact with kubernetes is https://github.com/fabric8io/kubernetes-client It looks like you have changed the SessionSpec to also have the resource limitations in them. |
Beta Was this translation helpful? Give feedback.
Hi,
the Java library we are using to interact with kubernetes is https://github.com/fabric8io/kubernetes-client
The
.create()
method should send to object you created to the kubernetes API and returns the object that is now present on kubernetes side. So it looks like on kubernetes your information got lost.It looks like you have changed the SessionSpec to also have the resource limitations in them.
Besides that you also have to do two more things:
You also have to increase the version in the annotations in org.eclipse.theia.cloud.common.k8s.resource.Session.
And tell kubernetes itself about this change by adding a new version here: https://github.com/eclipsesource/theia-cloud-helm/blob/…