Skip to content

Kubernetes executor failed quota: quota-limit: must specify limits.cpu,limits.memory,requests.cpu,request

Summary

kubernetes executor runners pod not started with error message:

ERROR: Job failed (system failure): prepare environment: setting up build pod: pods "runner-zwnhlm8-project-821-concurrent-0md2jl" is forbidden: failed quota: quota-limit: must specify limits.cpu,limits.memory,requests.cpu,requests.memory. Check https://docs.gitlab.com/runner/shells/index.html#shell-profile-loading for more information

Steps to reproduce

Add quota to runners namespace. Try start job

Actual behavior

Init-container with name init-logs not have resources.cpu and resources.memory

Expected behavior

Add in config analogue of helper_cpu_request, helper_cpu_limit ... etc for init-logs

Environment description

Kubernetes executor

Used GitLab Runner version

Running with gitlab-runner:alpine-v14.1.0