-
Notifications
You must be signed in to change notification settings - Fork 19
/
values.yaml
104 lines (98 loc) · 2.55 KB
/
values.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
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
91
92
93
94
95
96
97
98
99
100
101
102
103
image:
repository: gradle/build-cache-node
# see https://hub.docker.com/r/gradle/build-cache-node/tags
tag: "20.0"
pullPolicy: Always
service:
main:
ports:
main:
port: 5071
targetPort: 5071
workload:
main:
replicas: 1
strategy: Recreate
type: Deployment
podSpec:
initContainers:
init-config:
enabled: true
type: init
imageSelector: image
# we need to copy the config since mounting the secret would make the file read only
# which crashes the build cache server (required rw). So we jump through hoops
command:
- /bin/sh
- -ce
args:
- |
echo "Copying config.yaml file..."
if [ -f /tmp/conf/config.yaml ]; then
cp /tmp/conf/config.yaml /data/conf/config.yaml
echo "...done"
else
echo 'config.yaml does not exist'
fi
containers:
main:
args:
- start
probes:
startup:
enabled: true
port: 5071
type: tcp
spec:
initialDelaySeconds: 5
periodSeconds: 3
failureThreshold: 6
readiness:
enabled: true
port: 5071
type: tcp
spec:
initialDelaySeconds: 5
periodSeconds: 3
failureThreshold: 6
liveness:
enabled: true
type: tcp
port: 5071
spec:
initialDelaySeconds: 1
periodSeconds: 5
failureThreshold: 3
securityContext:
container:
readOnlyRootFilesystem: false
runAsNonRoot: false
runAsUser: 0
runAsGroup: 0
persistence:
cache:
enabled: true
size: 1Gi
mountPath: "/data/system"
config:
enabled: true
size: 1Mi
mountPath: "/data/conf"
targetSelectAll: all
type: emptyDir
config-secret:
# Enable if you want to preseed a config
enabled: false
type: secret
objectName: 'gradle-cache-config'
expandObjectName: false
targetSelector:
main:
init-config:
# this secret needs to have a property called 'config.yaml' that is the base64 encoded gradle-cache config
# see https://docs.gradle.com/build-cache-node/#editing_the_file
mountPath: "/tmp/conf/config.yaml"
subPath: 'config.yaml'
portal:
open:
enabled: false