Alanny Lopez | 0e8ad99 | 2017-06-19 15:45:23 -0500 | [diff] [blame] | 1 | apiVersion: v1 |
| 2 | kind: Pod |
| 3 | metadata: |
| 4 | name: ${podname} |
| 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: |
| 10 | - name: home |
| 11 | persistentVolumeClaim: |
| 12 | claimName: ${hclaim} |
| 13 | - name: sscdir |
| 14 | persistentVolumeClaim: |
| 15 | claimName: ${sclaim} |
Alanny Lopez | 0e8ad99 | 2017-06-19 15:45:23 -0500 | [diff] [blame] | 16 | 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 Lopez | 723fea6 | 2017-09-12 11:22:17 -0500 | [diff] [blame] | 25 | - name: builddir |
| 26 | value: ${builddir} |
Alanny Lopez | 0e8ad99 | 2017-06-19 15:45:23 -0500 | [diff] [blame] | 27 | securityContext: |
| 28 | capabilities: |
| 29 | add: |
| 30 | - SYS_ADMIN |
| 31 | volumeMounts: |
| 32 | - name: home |
| 33 | mountPath: ${HOME} |
| 34 | - name: sscdir |
| 35 | mountPath: ${sscdir} |
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: |
| 38 | - name: ${imgplsec} |