forked from jenkins-infra/kubernetes-management
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PodTemplates.yaml
40 lines (40 loc) · 920 Bytes
/
PodTemplates.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
apiVersion: "v1"
kind: "Pod"
metadata:
labels:
jenkins: "agent"
job: "helmfile"
spec:
nodeSelector:
kubernetes.azure.com/agentpool: infracipool
kubernetes.io/os: linux
tolerations:
- key: "os"
operator: "Equal"
value: "linux"
effect: "NoSchedule"
- key: "spot"
operator: "Equal"
value: "true"
effect: "NoSchedule"
- key: "jenkins"
operator: "Equal"
value: "infra.ci.jenkins.io"
effect: "NoSchedule"
- key: "kubernetes.azure.com/scalesetpriority"
operator: "Equal"
value: "spot"
effect: "NoSchedule"
containers:
- image: "jenkinsciinfra/helmfile:2.5.105"
imagePullPolicy: "IfNotPresent"
name: "jnlp"
resources:
limits:
memory: "1024Mi"
cpu: "2"
requests:
memory: "256Mi"
cpu: "0.5"
securityContext:
privileged: false