Drone CI 中文文档

Tolerations

The tolerations section can be used in conjunction with taints to ensure pipelines are not scheduled onto inappropriate nodes.

Learn more about Taints and Tolerations

Example configuration:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
kind: pipeline
type: kubernetes
name: default

steps:
- name: build
  image: golang
  commands:
  - go build
  - go test

tolerations:
- key: example-key
  operator: Exists
  effect: NoSchedule