Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • gitlab-runner gitlab-runner
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 972
    • Issues 972
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Jira
    • Jira
  • Merge requests 88
    • Merge requests 88
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Environments
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
  • Activity
  • Create a new issue
  • Jobs
  • Issue Boards
Collapse sidebar

Do not update/delete: Banner broadcast message test data

Do not update/delete: Notification broadcast message test data

  • GitLab.orgGitLab.org
  • gitlab-runnergitlab-runner
  • Issues
  • #1836
Closed
Open
Issue created Oct 28, 2016 by username-removed-810624@chrobbert

Kubernetes Runner produces error on using limits

Summary

If there are CPU or Memory limits set in the config.toml, the kubernetes runner can not create a pod

Steps to reproduce

Use the following runner config and schedule a build to that runner.

concurrent = 4

[[runners]]
  name = "Kubernetes Runner"
  url = "https://your_gitlab/ci"
  token = "*****"
  executor = "kubernetes"
  [runners.kubernetes]
    namespace = "gitlab-runner"
    privileged = false
    cpus = "100m"
    memory = ""
    service_cpus = ""
    service_memory = ""

Actual behavior

No pod is created. Build stops with a runner error.

Expected behavior

The runner should spawn a pod with ressource limit 100m CPU

Relevant logs and/or screenshots

Error message from Gitlab CI

ERROR: Build failed (system failure): Pod "runner-3a1e75d2-project-344-concurrent-07dumg" is invalid: [spec.containers[0].resources.limits[limits.cpu]: Invalid value: "limits.cpu": must be a standard resource for containers, spec.containers[0].resources.requests[limits.cpu]: Invalid value: "limits.cpu": must be a standard resource for containers]

Environment description

Gitlab CI runner is Docker container gitlab/gitlab-runner:alpine-v1.7.0on selfhosted kubernetes 1.3.

Used GitLab Runner version

bash-4.3# gitlab-runner --version
Version:      1.7.0
Git revision: c66b00d
Git branch:   1-7-stable
GO version:   go1.7.3
Built:        Fri, 21 Oct 2016 21:30:34 +0000
OS/Arch:      linux/amd64
Assignee
Assign to
Time tracking