blob: 4eb76da5e4f5926e1ae59c7e86a1a2882ef30a7b [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:
Alanny Lopeza6b7d4b2017-10-19 09:58:25 -050010 - name: workspace
Alanny Lopez0e8ad992017-06-19 15:45:23 -050011 persistentVolumeClaim:
Alanny Lopeza6b7d4b2017-10-19 09:58:25 -050012 claimName: ${wclaim}
Alanny Lopez0e8ad992017-06-19 15:45:23 -050013 - 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:
Alanny Lopeza6b7d4b2017-10-19 09:58:25 -050032 - name: workspace
33 mountPath: ${HOME}/workspace
Alanny Lopez0e8ad992017-06-19 15:45:23 -050034 - 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}