Alanny Lopez | 0e8ad99 | 2017-06-19 15:45:23 -0500 | [diff] [blame] | 1 | apiVersion: v1 |
2 | kind: Pod | ||||
3 | metadata: | ||||
Alanny Lopez | 1246b03 | 2018-02-24 23:34:55 -0600 | [diff] [blame] | 4 | name: ${pod_name} |
Alanny Lopez | 0e8ad99 | 2017-06-19 15:45:23 -0500 | [diff] [blame] | 5 | namespace: ${namespace} |
6 | spec: | ||||
7 | nodeSelector: | ||||
Alanny Lopez | eba5ad4 | 2017-08-18 14:48:37 -0500 | [diff] [blame] | 8 | beta.kubernetes.io/arch: ${ARCH} |
Alanny Lopez | 0e8ad99 | 2017-06-19 15:45:23 -0500 | [diff] [blame] | 9 | volumes: |
Alanny Lopez | a6b7d4b | 2017-10-19 09:58:25 -0500 | [diff] [blame] | 10 | - name: workspace |
Alanny Lopez | 0e8ad99 | 2017-06-19 15:45:23 -0500 | [diff] [blame] | 11 | persistentVolumeClaim: |
Alanny Lopez | 1246b03 | 2018-02-24 23:34:55 -0600 | [diff] [blame] | 12 | claimName: ${w_claim} |
13 | - name: ssc-dir | ||||
Alanny Lopez | 0e8ad99 | 2017-06-19 15:45:23 -0500 | [diff] [blame] | 14 | persistentVolumeClaim: |
Alanny Lopez | 1246b03 | 2018-02-24 23:34:55 -0600 | [diff] [blame] | 15 | claimName: ${s_claim} |
Alanny Lopez | 0e8ad99 | 2017-06-19 15:45:23 -0500 | [diff] [blame] | 16 | hostNetwork: True |
17 | containers: | ||||
Alanny Lopez | 1246b03 | 2018-02-24 23:34:55 -0600 | [diff] [blame] | 18 | - image: ${img_name} |
Alanny Lopez | 0e8ad99 | 2017-06-19 15:45:23 -0500 | [diff] [blame] | 19 | name: builder |
20 | command: [\"${WORKSPACE}/build.sh\"] | ||||
21 | workingDir: ${HOME} | ||||
22 | env: | ||||
23 | - name: WORKSPACE | ||||
24 | value: ${WORKSPACE} | ||||
Alanny Lopez | 1246b03 | 2018-02-24 23:34:55 -0600 | [diff] [blame] | 25 | - name: build-dir |
26 | value: ${build_dir} | ||||
Alanny Lopez | 0e8ad99 | 2017-06-19 15:45:23 -0500 | [diff] [blame] | 27 | securityContext: |
28 | capabilities: | ||||
29 | add: | ||||
30 | - SYS_ADMIN | ||||
31 | volumeMounts: | ||||
Alanny Lopez | a6b7d4b | 2017-10-19 09:58:25 -0500 | [diff] [blame] | 32 | - name: workspace |
33 | mountPath: ${HOME}/workspace | ||||
Alanny Lopez | 1246b03 | 2018-02-24 23:34:55 -0600 | [diff] [blame] | 34 | - name: ssc-dir |
35 | mountPath: ${ssc_dir} | ||||
Alanny Lopez | eba5ad4 | 2017-08-18 14:48:37 -0500 | [diff] [blame] | 36 | restartPolicy: Never |
Alanny Lopez | 0e8ad99 | 2017-06-19 15:45:23 -0500 | [diff] [blame] | 37 | imagePullSecrets: |
Alanny Lopez | 1246b03 | 2018-02-24 23:34:55 -0600 | [diff] [blame] | 38 | - name: ${img_pl_sec} |