forked from jenkins-infra/kubernetes-management
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPodTemplates.yaml
46 lines (46 loc) · 1.08 KB
/
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
41
42
43
44
45
46
apiVersion: "v1"
kind: "Pod"
metadata:
labels:
jenkins: "agent"
job: "helmfile"
spec:
tolerations:
- key: "os"
operator: "Equal"
value: "linux"
effect: "NoSchedule"
- key: "profile"
operator: "Equal"
value: "highmem"
effect: "NoSchedule"
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/os
operator: In
values:
- linux
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 1
preference:
matchExpressions:
- key: agentpool
operator: In
values:
- highmemlinux
containers:
- image: "jenkinsciinfra/helmfile:2.1.1"
imagePullPolicy: "IfNotPresent"
name: "jnlp"
resources:
limits:
memory: "1512Mi"
cpu: "400m"
requests:
memory: "1512Mi"
cpu: "400m"
securityContext:
privileged: false