blob: a3833674e6876b59b9ba1655aa937b4946f09853 [file] [log] [blame]
Alanny Lopez0e8ad992017-06-19 15:45:23 -05001apiVersion: v1
2kind: Pod
3metadata:
Alanny Lopez1246b032018-02-24 23:34:55 -06004 name: ${pod_name}
Alanny Lopez0e8ad992017-06-19 15:45:23 -05005 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 Lopez1246b032018-02-24 23:34:55 -060012 claimName: ${w_claim}
13 - name: ssc-dir
Alanny Lopez0e8ad992017-06-19 15:45:23 -050014 persistentVolumeClaim:
Alanny Lopez1246b032018-02-24 23:34:55 -060015 claimName: ${s_claim}
Alanny Lopez0e8ad992017-06-19 15:45:23 -050016 hostNetwork: True
17 containers:
Alanny Lopez1246b032018-02-24 23:34:55 -060018 - image: ${img_name}
Alanny Lopez0e8ad992017-06-19 15:45:23 -050019 name: builder
20 command: [\"${WORKSPACE}/build.sh\"]
21 workingDir: ${HOME}
22 env:
23 - name: WORKSPACE
24 value: ${WORKSPACE}
Alanny Lopez1246b032018-02-24 23:34:55 -060025 - name: build-dir
26 value: ${build_dir}
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 Lopez1246b032018-02-24 23:34:55 -060034 - name: ssc-dir
35 mountPath: ${ssc_dir}
Alanny Lopezeba5ad42017-08-18 14:48:37 -050036 restartPolicy: Never
Alanny Lopez0e8ad992017-06-19 15:45:23 -050037 imagePullSecrets:
Alanny Lopez1246b032018-02-24 23:34:55 -060038 - name: ${img_pl_sec}