File tree 5 files changed +44
-1
lines changed
templates/example-data-grid
5 files changed +44
-1
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ name: hono
15
15
description : |
16
16
Eclipse Hono™ provides remote service interfaces for connecting large numbers of IoT devices to a back end and
17
17
interacting with them in a uniform way regardless of the device communication protocol.
18
- version : 2.2.1
18
+ version : 2.2.2
19
19
# Version of Hono being deployed by the chart
20
20
appVersion : 2.2.0
21
21
keywords :
Original file line number Diff line number Diff line change 38
38
<security >
39
39
<authorization enabled =" true" />
40
40
</security >
41
+ {{- if .Values.dataGridExample.persistence.enabled }}
42
+ <persistence passivation =" false" >
43
+ <file-store >
44
+ <index path =" /opt/infinispan/server/data/index" />
45
+ <data path =" /opt/infinispan/server/data/data" />
46
+ </file-store >
47
+ </persistence >
48
+ {{- end }}
41
49
</distributed-cache >
50
+ {{- if .Values.dataGridExample.persistence.enabled }}
51
+ <global-state >
52
+ <persistent-location path =" /opt/infinispan/server/data" />
53
+ </global-state >
54
+ {{- end }}
42
55
</cache-container >
43
56
44
57
<server xmlns =" urn:infinispan:server:13.0" >
Original file line number Diff line number Diff line change
1
+ {{- if .Values.dataGridExample.persistence.enabled -}}
2
+ kind : PersistentVolumeClaim
3
+ apiVersion : v1
4
+ metadata :
5
+ {{- $args := dict "dot" . "component" "data-grid" "name" "data-grid-pvc" }}
6
+ {{- include "hono.metadata" $args | nindent 2 }}
7
+ spec :
8
+ accessModes :
9
+ - ReadWriteOnce
10
+ resources :
11
+ requests :
12
+ storage : {{ .Values.dataGridExample.persistence.pvcSize }}
13
+ {{- end }}
Original file line number Diff line number Diff line change 65
65
name : conf
66
66
subPath : mgmt-groups.properties
67
67
readOnly : true
68
+ {{- if .Values.dataGridExample.persistence.enabled }}
69
+ - name : storage
70
+ mountPath : /opt/infinispan/server/data
71
+ {{- end}}
68
72
{{- include "hono.component.healthChecks" $args | nindent 8 }}
69
73
{{- with .Values.dataGridExample.resources }}
70
74
resources :
75
79
- name : conf
76
80
configMap :
77
81
name : {{ printf "%s-%s-conf" .Release.Name $args.name }}
82
+ {{- if .Values.dataGridExample.persistence.enabled }}
83
+ - name : storage
84
+ persistentVolumeClaim :
85
+ claimName : {{ printf "%s-%s-pvc" .Release.Name $args.name | quote }}
86
+ {{- end}}
87
+
78
88
{{- end }}
Original file line number Diff line number Diff line change @@ -1983,6 +1983,13 @@ dataGridExample:
1983
1983
# dataMaxSize contains the maximum size of off-heap memory used for storing data per Infinispan node
1984
1984
dataMaxSize : " 30 MB"
1985
1985
1986
+ # persistence contains configuration on the dataGrid persitence settings.
1987
+ persistence :
1988
+ # enabled defines whether or not persistence is enabled for the example dataGrid
1989
+ enabled : false
1990
+ # pvcSize determines the size of the pvc created to write the cache data to
1991
+ pvcSize : " 100M"
1992
+
1986
1993
jaegerBackendExample :
1987
1994
1988
1995
# enabled indicates whether the example Jaeger all-in-one
You can’t perform that action at this time.
0 commit comments