blob: 4eb76da5e4f5926e1ae59c7e86a1a2882ef30a7b [file] [log] [blame]
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: [\"${WORKSPACE}/build.sh\"]
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}