blob: 9df448812fb926156a1c424f28e0248e492b6422 [file] [log] [blame]
apiVersion: v1
kind: Pod
metadata:
name: ${podname}
namespace: ${namespace}
spec:
nodeSelector:
beta.kubernetes.io/arch: ${ARCH}
volumes:
- name: home
persistentVolumeClaim:
claimName: ${hclaim}
- 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: home
mountPath: ${HOME}
- name: sscdir
mountPath: ${sscdir}
restartPolicy: Never
imagePullSecrets:
- name: ${imgplsec}