Skip to content

CICD-214 · Runner resource limits ​

Encyclopedia · Runner administration and execution infrastructure · All snippets

Previous · CICD-213 · Next · CICD-215

1. Where it fits ​

  • Placement gitlab-runner-config-note.yml fragment.
  • Prerequisites lab host, trusted repositories, installed act_runner or GitHub runner when named.
  • Platforms gitlab-ci, kubernetes.

2. Copy the snippet ​

yaml
resources:
  requests: {cpu: 500m, memory: 512Mi}
  limits: {cpu: "2", memory: 2Gi}

3. How it works ​

Requests inform scheduling and limits bound the resources available to the workload. Use observed workload demand to select values.

4. Verify the result ​

Place in a Kubernetes executor runner Pod template under the build container. Verify cgroup limits within the job and reserve capacity for services and helpers.

Validation syntax-validated (YAML parse). Status definitions.