-
Notifications
You must be signed in to change notification settings - Fork 30
/
config.yaml
74 lines (65 loc) · 2.18 KB
/
config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
agent-token-secret: my-kubernetes-secret
debug: true
image: my.registry.dev/buildkite-agent:latest
job-ttl: 5m
image-pull-backoff-grace-period: 60s
poll-interval: 5s
max-in-flight: 100
namespace: my-buildkite-ns
org: my-buildkite-org
# Setting a custom GraphQL endpoint is usually only useful if you have a
# different instance of Buildkite itself available to run.
graphql-endpoint: http://graphql.buildkite.localhost/v1
# only set cluster-uuid if the pipelines are in a cluster
# the UUID may be found in the cluster settings
cluster-uuid: beefcafe-abbe-baba-abba-deedcedecade
tags:
- queue=my-queue
- priority=high
# Causes the controller to prohibit the kubernetes plugin specified within jobs
# (pipeline YAML) - enabling this causes jobs with a kubernetes plugin to fail,
# preventing the pipeline YAML from having any influence over the podSpec
prohibit-kubernetes-plugin: true
# Applies to all agents
agent-config:
# Setting a custom Agent REST API endpoint is usually only useful if you have
# a different instance of Buildkite itself available to run.
endpoint: http://agent.buildkite.localhost/v3
# Applies to the checkout container in all spawned pods
default-checkout-params:
gitCredentialsSecret:
secretName: "my-git-credentials"
envFrom:
- prefix: GITHUB_
secretRef:
name: github-secrets
# Applies to all command containers in all spawned pods
default-command-params:
interposer: vector
envFrom:
- prefix: DEPLOY_
secretRef:
name: deploy-secrets
# Applies to all sidecar containers in all spawned pods
default-sidecar-params:
envFrom:
- prefix: LOGGING_
configMapRef:
name: logging-config
# This will be applied to the job's podSpec as a strategic merge patch
# See https://kubernetes.io/docs/tasks/manage-kubernetes-objects/update-api-object-kubectl-patch
pod-spec-patch:
serviceAccountName: buildkite-agent-sa
automountServiceAccountToken: true
containers:
- name: container-0
env:
- name: GITHUB_TOKEN
valueFrom:
secretKeyRef:
name: github-secrets
key: github-token
resources:
requests:
cpu: 1000m # one core
mem: 4Gi