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
  • #2376
Closed
Open
Issue created Apr 20, 2017 by username-removed-1244771@ashernevins

Add support for Kubernetes labels

Description

There are a number of reasons that labels are useful for kubernetes pods.

  1. Dashboards/tracking/metrics
  2. Using the PodPresets feature in Kubernetes to open up more configuration options without relying on further development of the kubernetes executor (small effort for huge win)
  3. Using PodPresents to mount volumes, especially the docker socket, which is a blocker for a lot of people to get the basic functionality they need on the kubernetes executor (it currently is not useable for many common requirements).

Currently, the kubernetes runners don't support volumes (see https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/issues/2258).

Proposal

Add the following format to config.toml under [[runners]] => [runners.kubernetes]

[runners.kubernetes.labels]
  app: gitlab-kubernetes-executor
  role: build

Links to related issues and merge requests / references

Currently, the kubernetes runners don't support volumes (see https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/issues/2258#note_27719401). While adding volumes would be great, adding labels would allow a workaround and are much less complex as they apply to the pod level and not the container level.

Assignee
Assign to
Time tracking