-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbonita_deployment.yaml
109 lines (109 loc) · 3.03 KB
/
bonita_deployment.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
104
105
106
107
108
109
apiVersion: apps/v1
kind: Deployment
metadata:
name: bonita-test
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app.kubernetes.io/instance: bonita-test
app.kubernetes.io/name: bonita
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
app.kubernetes.io/instance: bonita-test
app.kubernetes.io/name: bonita
spec:
serviceAccountName: bonitaserviceaccount
hostname: bonita
containers:
- envFrom:
- secretRef:
name: bonita-test-creds
- configMapRef:
name: bonita-test
image: bonitasoft.jfrog.io/docker/bonita-subscription:10.0.0
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 10
httpGet:
httpHeaders:
- name: Authorization
value: Basic bW9uaXRvcmluZzpteU1vbml0b3JpbmdTZWNyZXQ=
- name: User-Agent
value: BonitaHealthCheck/1.0
path: /bonita/healthz
port: 8080
scheme: HTTP
periodSeconds: 15
successThreshold: 1
timeoutSeconds: 5
name: bonita
ports:
- containerPort: 5701
name: hazelcast
protocol: TCP
- containerPort: 8080
name: bonita
protocol: TCP
resources:
limits:
cpu: 2
memory: 2000Mi
requests:
cpu: 2
memory: 2000Mi
securityContext:
runAsGroup: 1000
runAsUser: 1000
startupProbe:
failureThreshold: 20
httpGet:
httpHeaders:
- name: Authorization
value: Basic bW9uaXRvcmluZzpteU1vbml0b3JpbmdTZWNyZXQ=
- name: User-Agent
value: BonitaHealthCheck/1.0
path: /bonita/healthz
port: 8080
scheme: HTTP
initialDelaySeconds: 120
periodSeconds: 15
successThreshold: 1
timeoutSeconds: 5
volumeMounts:
- name: bonita-scripts
mountPath: /opt/custom-init.d
- name: bonita-lic
mountPath: /opt/bonita_lic
dnsPolicy: ClusterFirst
imagePullSecrets:
- name: imagepullsecret
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
- name: bonita-scripts
configMap:
name: bonita-scripts
items:
- key: bonita_setup.sh
path: bonita_setup.sh
- key: log4j2-appenders.xml
path: log4j2-appenders.xml
- key: bonita-platform-sp-cluster-custom.properties
path: bonita-platform-sp-cluster-custom.properties
- name: bonita-lic
configMap:
name: bonita-license
items:
- key: bonita-license.lic
path: bonita-license.lic