-
Notifications
You must be signed in to change notification settings - Fork 1
/
jenkins-agent-template.yml
55 lines (55 loc) · 1.78 KB
/
jenkins-agent-template.yml
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
kind: ConfigMap
apiVersion: v1
metadata:
name: jenkins-agent
labels:
role: jenkins-slave
data:
nodejs: |-
<org.csanchez.jenkins.plugins.kubernetes.PodTemplate>
<inheritFrom></inheritFrom>
<name>nodejs</name>
<instanceCap>2147483647</instanceCap>
<idleMinutes>0</idleMinutes>
<label>nodejs</label>
<serviceAccount>jenkins</serviceAccount>
<nodeSelector></nodeSelector>
<volumes/>
<containers>
<container>
<org.csanchez.jenkins.plugins.kubernetes.ContainerTemplate>
<name>jnlp</name>
<image>image-registry.openshift-image-registry.svc:5000/pentest1/jenkins-agent-nodejs-10-rhel7:latest</image>
<privileged>false</privileged>
<alwaysPullImage>true</alwaysPullImage>
<workingDir>/tmp</workingDir>
<command></command>
<args>${computer.jnlpmac} ${computer.name}</args>
<ttyEnabled>false</ttyEnabled>
<resourceRequestCpu></resourceRequestCpu>
<resourceRequestMemory></resourceRequestMemory>
<resourceLimitCpu></resourceLimitCpu>
<resourceLimitMemory></resourceLimitMemory>
<envVars>
<envVar>
<key>no_proxy</key>
<value>true</value>
</envVar>
<envVar>
<key>JENKINS_AGENT_WORKDIR</key>
<value>/tmp</value>
</envVar>
</envVars>
</org.csanchez.jenkins.plugins.kubernetes.ContainerTemplate>
</container>
</containers>
<envVars>
<envVar>
<key>no_proxy</key>
<value>true</value>
</envVar>
</envVars>
<annotations/>
<imagePullSecrets/>
<nodeProperties/>
</org.csanchez.jenkins.plugins.kubernetes.PodTemplate>