Modifying pod templates with containermode.type=kubernetes #3107
-
Hello, My current understanding of containermode.type=kubernetes is that there is essentially two pods that are spun up by the action, one being the 'runner' that communicates with GitHub and the other the 'worker' which is where the actual job will run. My question is related to modifying the pod template for the worker (for example, if we want to add some sort of resource requests/limits/etc). I think this would also be useful i.e to inject Kubernetes secrets into the worker pods. Is it currently possible to modify this worker pod template? I know we can modify the values.yml which will affect the runner pod, but it doesn't seem to apply the same fields to the other pod that is created. I see some similar discussions but don't see any official solution. Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hey @nikolamarunic, You can use hook extensions to customize job pods that are created by the kubernetes hook. Probably the best way to do so is to create a config map and mount it on the runner. Set the env to point to the hook extension file and the hook should apply the spec according to the ADR. |
Beta Was this translation helpful? Give feedback.
Hey @nikolamarunic,
You can use hook extensions to customize job pods that are created by the kubernetes hook. Probably the best way to do so is to create a config map and mount it on the runner. Set the env to point to the hook extension file and the hook should apply the spec according to the ADR.☺️