blob: 75adac8f0424370bfcca0fa6dd7d45809ea57d6b [file] [log] [blame]
Alanny Lopezd1bb5b32017-09-20 11:32:40 -05001apiVersion: v1
2kind: Pod
3metadata:
4 name: ${podname}
5 namespace: ${namespace}
6spec:
7 nodeSelector:
8 beta.kubernetes.io/arch: ${ARCH}
9 volumes:
Alanny Lopeza6b7d4b2017-10-19 09:58:25 -050010 - name: workspace
Alanny Lopezd1bb5b32017-09-20 11:32:40 -050011 persistentVolumeClaim:
Alanny Lopeza6b7d4b2017-10-19 09:58:25 -050012 claimName: ${wclaim}
Alanny Lopezd1bb5b32017-09-20 11:32:40 -050013 - name: sscdir
14 persistentVolumeClaim:
15 claimName: ${sclaim}
16 hostNetwork: True
17 containers:
18 - image: ${imgname}
19 name: builder
20 command: ["/bin/bash","-c"]
21 args: ["sleep 2h"]
22 workingDir: ${HOME}
23 env:
24 - name: WORKSPACE
25 value: ${WORKSPACE}
26 - name: builddir
27 value: ${builddir}
28 securityContext:
29 capabilities:
30 add:
31 - SYS_ADMIN
32 volumeMounts:
Alanny Lopeza6b7d4b2017-10-19 09:58:25 -050033 - name: workspace
34 mountPath: ${HOME}/workspace
Alanny Lopezd1bb5b32017-09-20 11:32:40 -050035 - name: sscdir
36 mountPath: ${sscdir}
37 restartPolicy: Never
38 imagePullSecrets:
Alanny Lopeza6b7d4b2017-10-19 09:58:25 -050039 - name: ${imgplsec}