-
Notifications
You must be signed in to change notification settings - Fork 1
/
gradle-cache-stateful-set.yaml
65 lines (65 loc) · 1.78 KB
/
gradle-cache-stateful-set.yaml
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
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: build-cache-node
namespace: build-cache
labels:
app.kubernetes.io/part-of: gradle-enterprise
app.kubernetes.io/component: build-cache-node
spec:
selector:
matchLabels:
app.kubernetes.io/part-of: gradle-enterprise
app.kubernetes.io/component: build-cache-node
serviceName: build-cache-node
replicas: 2
template:
metadata:
labels:
app.kubernetes.io/part-of: gradle-enterprise
app.kubernetes.io/component: build-cache-node
spec:
initContainers:
- name: config-mounter
image: "busybox:1.33.0"
command: [
"sh",
"-ce",
"cp /tmp/config.yaml /data/conf/config.yaml" ]
volumeMounts:
- name: tmp-build-cache-config-file
mountPath: /tmp
- name: build-cache-config-dir
mountPath: /data/conf
containers:
- name: build-cache-node
image: gradle/build-cache-node:19.0
args: [ "start" ]
ports:
- containerPort: 5071
resources:
requests:
memory: 1Gi
cpu: 0.5
limits:
memory: 2Gi
cpu: 1.5
env:
- name: EXCLUSIVE_VOLUME_SIZE
value: "10Gi"
volumeMounts:
- mountPath: /data
name: build-cache-node-data-volume
- name: build-cache-config-dir
mountPath: /data/conf
volumes:
- name: build-cache-node-data-volume
azureFile:
secretName: azure-build-cache-secret
shareName: build-cache
readOnly: false
- name: build-cache-config-dir
emptyDir: {}
- name: tmp-build-cache-config-file
secret:
secretName: gradle-build-cache-config-secret