I am deploying jenkins on Kubernetes using the latest version of the official image.
I have an issue with how /computer route reports the size for built-in-node. Currently, I provide a 4GB PVC for the deployment and here is the deployment script:
That is how much free space Kubernetes storage node has in total, but I would rather seeing the 4GB persistent volume that I assigned to the deployment.
I am not sure if this is a bug but I would be grateful if someone has a resolution.
However, that didn’t fix it either. It’s not just the space, the fact that it’s also displaying the operating system of Kubernetes node as built-in node’s architectue tells me that there is a place in the code that connects the Node system information to this.
I think ur doing the right thing using ephemeral cause if you're using the local PV type in Kubernetes, it will effectively use all available local storage on the node without being constrained by the specified size in the PV definition.. However, I am not sure what u r trying to explain here.
Are u saying that even if u used ephemeral, u still got 306G storage shows on ur jenkins?
Also, is it ok to set memory and CPU with ephemeral-storage at the same time? maybe try to leave the ephemeral-storage only?(I am not sure about this cause I did not used ephemeral before, just googled and all examples have only ephemeral-storage)
Even when using ephemeral storage, the Built-In Node is reporting Kubernetes node’s information rather than Jenkins pod’s. I do not want the user to see how much free space I have in Kubernetes node because I have already assigned 4GB space to the Jenkins pod and it’s supposed to be running in a container.
I have even tried assigning the ephemeral storage based on the official instructions here.