Repository navigation
Expand file tree
/
Copy pathgh_single_template.yaml
More file actions
90 lines (90 loc) · 2.21 KB
/
Copy pathgh_single_template.yaml
File metadata and controls
90 lines (90 loc) · 2.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
apiVersion: batch/v1
kind: Job
metadata:
name: greenhouse-eol-single-${INDEX}-nfs
spec:
completions: 1
parallelism: 1
completionMode: Indexed
backoffLimit: 2
backoffLimitPerIndex: 2
maxFailedIndexes: 1
podFailurePolicy:
rules:
- action: Ignore
onExitCodes:
operator: In
values: [42]
- action: Ignore
onPodConditions:
- type: DisruptionTarget
- action: Count
onExitCodes:
operator: NotIn
values: [0]
template:
spec:
hostUsers: false
restartPolicy: Never
activeDeadlineSeconds: 216000
containers:
- name: gh-single-${INDEX}-worker-nfs
image: capysix/greenhouse:gh-2.49d
securityContext:
privileged: true
resources:
limits:
memory: "128Gi"
ephemeral-storage: "300Gi"
cpu: "2"
requests:
memory: "16Gi"
ephemeral-storage: "32Gi"
cpu: "1"
command:
- 'bash'
- '-c'
- '/gh/entrypoint.sh /shared/greenhouse/eol /shared/greenhouse/eol/unpacked.list ${INDEX}'
volumeMounts:
- name: nfs-shared
mountPath: "/shared"
- name: fakedev
mountPath: "/host/dev"
- name: dockertmp
mountPath: "/tmp/ghdocker"
env:
- name: SKIP_FLAG
value: "1"
- name: RETRY_FLAG
value: "1"
- name: PROTOCOL
value: "HTTP"
- name: TARGET_ARCH
value: ""
- name: GHTIMEOUT
value: "144000"
- name: GH_ARGS
value: ""
- name: QEMU_EXECVE_DEBUG
value: ""
- name: OVERRIDE_CACHE
value: "1"
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
volumes:
- name: nfs-shared
persistentVolumeClaim:
claimName: nfs
- name: fakedev
hostPath:
path: /dev
- name: dockertmp
emptyDir: {}
imagePullSecrets:
- name: <->