blob: 9df448812fb926156a1c424f28e0248e492b6422 [file] [log] [blame]
Alanny Lopez0e8ad992017-06-19 15:45:23 -05001apiVersion: v1
2kind: Pod
3metadata:
4 name: ${podname}
5 namespace: ${namespace}
6spec:
7 nodeSelector:
Alanny Lopezeba5ad42017-08-18 14:48:37 -05008 beta.kubernetes.io/arch: ${ARCH}
Alanny Lopez0e8ad992017-06-19 15:45:23 -05009 volumes:
10 - name: home
11 persistentVolumeClaim:
12 claimName: ${hclaim}
13 - name: sscdir
14 persistentVolumeClaim:
15 claimName: ${sclaim}
Alanny Lopez0e8ad992017-06-19 15:45:23 -050016 hostNetwork: True
17 containers:
18 - image: ${imgname}
19 name: builder
20 command: [\"${WORKSPACE}/build.sh\"]
21 workingDir: ${HOME}
22 env:
23 - name: WORKSPACE
24 value: ${WORKSPACE}
Alanny Lopez723fea62017-09-12 11:22:17 -050025 - name: builddir
26 value: ${builddir}
Alanny Lopez0e8ad992017-06-19 15:45:23 -050027 securityContext:
28 capabilities:
29 add:
30 - SYS_ADMIN
31 volumeMounts:
32 - name: home
33 mountPath: ${HOME}
34 - name: sscdir
35 mountPath: ${sscdir}
Alanny Lopezeba5ad42017-08-18 14:48:37 -050036 restartPolicy: Never
Alanny Lopez0e8ad992017-06-19 15:45:23 -050037 imagePullSecrets:
38 - name: ${imgplsec}