blob: 11c4419ee936fc99acf3d25d96fb7ca7bb309ba6 [file] [log] [blame]
Alanny Lopezd1bb5b32017-09-20 11:32:40 -05001apiVersion: v1
2kind: Pod
3metadata:
Alanny Lopez1246b032018-02-24 23:34:55 -06004 name: ${pod_name}
Alanny Lopezd1bb5b32017-09-20 11:32:40 -05005 namespace: ${namespace}
6spec:
7 nodeSelector:
8 beta.kubernetes.io/arch: ${ARCH}
9 volumes:
Alanny Lopeza6b7d4b2017-10-19 09:58:25 -050010 - name: workspace
Alanny Lopezd1bb5b32017-09-20 11:32:40 -050011 persistentVolumeClaim:
Alanny Lopez1246b032018-02-24 23:34:55 -060012 claimName: ${w_claim}
13 - name: ssc-dir
Alanny Lopezd1bb5b32017-09-20 11:32:40 -050014 persistentVolumeClaim:
Alanny Lopez1246b032018-02-24 23:34:55 -060015 claimName: ${s_claim}
Alanny Lopezd1bb5b32017-09-20 11:32:40 -050016 hostNetwork: True
17 containers:
Alanny Lopez1246b032018-02-24 23:34:55 -060018 - image: ${img_name}
Alanny Lopezd1bb5b32017-09-20 11:32:40 -050019 name: builder
20 command: ["/bin/bash","-c"]
21 args: ["sleep 2h"]
22 workingDir: ${HOME}
23 env:
24 - name: WORKSPACE
25 value: ${WORKSPACE}
Alanny Lopez1246b032018-02-24 23:34:55 -060026 - name: build-dir
27 value: ${build_dir}
Alanny Lopezd1bb5b32017-09-20 11:32:40 -050028 securityContext:
29 capabilities:
30 add:
31 - SYS_ADMIN
32 volumeMounts:
Alanny Lopeza6b7d4b2017-10-19 09:58:25 -050033 - name: workspace
34 mountPath: ${HOME}/workspace
Alanny Lopez1246b032018-02-24 23:34:55 -060035 - name: ssc-dir
36 mountPath: ${ssc_dir}
Alanny Lopezd1bb5b32017-09-20 11:32:40 -050037 restartPolicy: Never
38 imagePullSecrets:
Alanny Lopez1246b032018-02-24 23:34:55 -060039 - name: ${img_pl_sec}