Hi.
Doesn anyone know how using Kasten Helm chart (4.5.9) to influence/change default kanister-sidecar behavior?
So far I wasn’t able to deploy it as sidecar in any namespace with limits set (without patching deployments ot statefullsets).
Kanister-sidecar attaches properly to any deployment in namespace without limits, and I am unable to find an easy way to to change its resources.
Did a little bit tweaking of prod-spec-override, but it seems it’s for different purposes
Solved
Kanister-sidecar resources definition
Best answer by jaiganeshjk
For example, if you want to set the CPU and memory requests/limits to 1 core and 1Gi respectively,
use the below upgrade command to do the same.
helm get values k10 --output yaml --namespace=kasten-io > k10_val.yaml && \
helm upgrade k10 kasten/k10 --namespace=kasten-io -f k10_val.yaml \
--set genericVolumeSnapshot.resources.requests.cpu=1 \
--set genericVolumeSnapshot.resources.requests.memory=1 \
--set genericVolumeSnapshot.resources.limits.cpu=1 \
--set genericVolumeSnapshot.resources.limits.memory=1
However, this won’t have any effect on already injected `kanister-sidecar` containers. You might have to uninject them to get them updated.
We have an in-house tool k10tools that can be used to easily un-inject all the sidecars.
Comment
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.