| apiVersion: v1 |
| kind: Pod |
| metadata: |
| name: ${podname} |
| namespace: ${namespace} |
| spec: |
| nodeSelector: |
| beta.kubernetes.io/arch: ${ARCH} |
| volumes: |
| - name: workspace |
| persistentVolumeClaim: |
| claimName: ${wclaim} |
| - name: sscdir |
| persistentVolumeClaim: |
| claimName: ${sclaim} |
| hostNetwork: True |
| containers: |
| - image: ${imgname} |
| name: builder |
| command: ["/bin/bash","-c"] |
| args: ["sleep 2h"] |
| workingDir: ${HOME} |
| env: |
| - name: WORKSPACE |
| value: ${WORKSPACE} |
| - name: builddir |
| value: ${builddir} |
| securityContext: |
| capabilities: |
| add: |
| - SYS_ADMIN |
| volumeMounts: |
| - name: workspace |
| mountPath: ${HOME}/workspace |
| - name: sscdir |
| mountPath: ${sscdir} |
| restartPolicy: Never |
| imagePullSecrets: |
| - name: ${imgplsec} |