Alanny Lopez | d1bb5b3 | 2017-09-20 11:32:40 -0500 | [diff] [blame] | 1 | apiVersion: v1 |
| 2 | kind: Pod |
| 3 | metadata: |
| 4 | name: ${podname} |
| 5 | namespace: ${namespace} |
| 6 | spec: |
| 7 | nodeSelector: |
| 8 | beta.kubernetes.io/arch: ${ARCH} |
| 9 | volumes: |
Alanny Lopez | a6b7d4b | 2017-10-19 09:58:25 -0500 | [diff] [blame^] | 10 | - name: workspace |
Alanny Lopez | d1bb5b3 | 2017-09-20 11:32:40 -0500 | [diff] [blame] | 11 | persistentVolumeClaim: |
Alanny Lopez | a6b7d4b | 2017-10-19 09:58:25 -0500 | [diff] [blame^] | 12 | claimName: ${wclaim} |
Alanny Lopez | d1bb5b3 | 2017-09-20 11:32:40 -0500 | [diff] [blame] | 13 | - 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 Lopez | a6b7d4b | 2017-10-19 09:58:25 -0500 | [diff] [blame^] | 33 | - name: workspace |
| 34 | mountPath: ${HOME}/workspace |
Alanny Lopez | d1bb5b3 | 2017-09-20 11:32:40 -0500 | [diff] [blame] | 35 | - name: sscdir |
| 36 | mountPath: ${sscdir} |
| 37 | restartPolicy: Never |
| 38 | imagePullSecrets: |
Alanny Lopez | a6b7d4b | 2017-10-19 09:58:25 -0500 | [diff] [blame^] | 39 | - name: ${imgplsec} |