-
Notifications
You must be signed in to change notification settings - Fork 0
/
testhub.yaml
50 lines (50 loc) · 1.2 KB
/
testhub.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
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: testhub-set
spec:
replicas: 1
serviceName: "testhub"
selector:
matchLabels:
app: testhub
template:
metadata:
labels:
app: testhub
spec:
containers:
- name: testhub
image: registry.digitalocean.com/do-k8s-ecr/test-hub:latest
imagePullPolicy: "Always"
env:
- name: JAVA_OPTS
value: -Xmx128m
ports:
- name: http-port
containerPort: 8080
volumeMounts:
- name: testhub-pvc
mountPath: /var/results
resources:
limits:
memory: "256Mi"
requests:
memory: "256Mi"
initContainers:
- name: testhub-data-permission-fix
image: busybox
command: [ "/bin/chmod","-R","777", "/var/results" ]
volumeMounts:
- name: testhub-pvc
mountPath: /var/results
volumeClaimTemplates:
- metadata:
name: testhub-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
storageClassName: do-block-storage