Drone CI 中文文档

Nodes

The node_selector section can be used to route pipelines to specific Kubernetes nodes, or groups of nodes, that have matching labels. This can be useful when you need to route pipelines to nodes with special configurations or hardware.

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

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

node_selector:
  keyA: valueA
  keyB: valueB