-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathkubernetes.yaml
53 lines (53 loc) · 1.1 KB
/
kubernetes.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
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: declab
spec:
replicas: 1
selector:
matchLabels:
app: declab
serviceName: declab-0
template:
metadata:
labels:
app: declab
spec:
containers:
- name: declab
image: maternase/declab:2.10.5
ports:
- containerPort: 8080
volumeMounts:
- name: declab-storage
mountPath: /opt/jboss/wildfly/standalone/data/dmn
readinessProbe:
httpGet:
path: /api/workspaces
port: 8080
initialDelaySeconds: 10
periodSeconds: 10
securityContext:
runAsUser: 1000
runAsGroup: 1000
fsGroup: 1000
volumeClaimTemplates:
- metadata:
name: declab-storage
spec:
accessModes: [ReadWriteOnce]
resources:
requests:
storage: 2G
---
apiVersion: v1
kind: Service
metadata:
name: declab
spec:
selector:
statefulset.kubernetes.io/pod-name: declab-0
type: LoadBalancer
ports:
- port: 80
targetPort: 8080