Open stekole opened 1 year ago
The code is here: https://github.com/omrikiei/ktunnel/blob/e05cea977a9b540ae7e24d0b042e21533cee842d/pkg/k8s/common.go#L127-L130
inject
but since it's written inside the newContainer
routine, it applies to expose
as well.I'm not well-versed enough in Go to quickly make this configurable from the CLI, but I made this hardcoded change to reduce the CPU request: https://github.com/jiehanzheng/ktunnel/commit/2c5a30cd1699b4f6ca74106e819c50e55ea2e939
@jiehanzheng have these request/limits been working OK for you? I'm facing the same issue here. I might take a crack at trying to fix this
When looking at requests and limits for the expose pod, it gives a non-int value and does not look to be configuable.
Using a
kubectl describe pod podname
gives the following values:I cannot see anywhere in the code for expose to change these values, however it exists for inject. https://github.com/omrikiei/ktunnel/issues/19
Is there anyway this could be used? It would be great to be able to change these values
Thank you