File tree Expand file tree Collapse file tree 4 files changed +37
-8
lines changed
Expand file tree Collapse file tree 4 files changed +37
-8
lines changed Original file line number Diff line number Diff line change @@ -1948,7 +1948,7 @@ true
19481948 <td>netdataOpentelemetry.dnsPolicy</td>
19491949 <td>string</td>
19501950 <td><pre lang="json">
1951- "Default "
1951+ "ClusterFirst "
19521952</pre >
19531953</td >
19541954 <td>DNS policy for pod</td>
@@ -1960,7 +1960,7 @@ true
19601960true
19611961</pre >
19621962</td >
1963- <td>Whether should use a persistent volume </td>
1963+ <td>Whether to use persistent volumes </td>
19641964 </tr>
19651965 <tr>
19661966 <td>netdataOpentelemetry.persistence.storageclass</td>
@@ -1969,7 +1969,7 @@ true
19691969"-"
19701970</pre >
19711971</td >
1972- <td>The storage class for the persistent volume claim</td>
1972+ <td>The storage class for the persistent volume claim (both varlib and varlog volumes) </td>
19731973 </tr>
19741974 <tr>
19751975 <td>netdataOpentelemetry.persistence.volumesize</td>
@@ -1978,7 +1978,7 @@ true
19781978"10Gi"
19791979</pre >
19801980</td >
1981- <td>The storage space for the PVC </td>
1981+ <td>The storage space for the logs (varlog volume) </td>
19821982 </tr>
19831983 <tr>
19841984 <td>netdataOpentelemetry.configs</td>
Original file line number Diff line number Diff line change @@ -140,6 +140,8 @@ spec:
140140 {{- if .Values.netdataOpentelemetry.persistence.enabled }}
141141 - name : varlog
142142 mountPath : /var/log/netdata/otel
143+ - name : varlib
144+ mountPath : /var/lib/netdata
143145 {{- end }}
144146 {{- if .Values.netdataOpentelemetry.extraVolumeMounts -}}
145147{{ toYaml .Values.netdataOpentelemetry.extraVolumeMounts | nindent 12 }}
@@ -175,6 +177,9 @@ spec:
175177 - name : varlog
176178 persistentVolumeClaim :
177179 claimName : {{ template "netdata.name" . }}-otel-varlog
180+ - name : varlib
181+ persistentVolumeClaim :
182+ claimName : {{ template "netdata.name" . }}-otel-varlib
178183 {{- end }}
179184 {{- if .Values.netdataOpentelemetry.extraVolumes }}
180185{{ toYaml .Values.netdataOpentelemetry.extraVolumes | indent 8}}
Original file line number Diff line number Diff line change 1919 resources :
2020 requests :
2121 storage : {{ .Values.netdataOpentelemetry.persistence.volumesize }}
22+ ---
23+ apiVersion : v1
24+ kind : PersistentVolumeClaim
25+ metadata :
26+ name : {{ template "netdata.name" . }}-otel-varlib
27+ namespace : {{ .Release.Namespace }}
28+ labels :
29+ app : {{ template "netdata.name" . }}
30+ chart : {{ template "netdata.chart" . }}
31+ release : {{ .Release.Name }}
32+ heritage : {{ .Release.Service }}
33+ role : otel
34+ spec :
35+ accessModes : [ "ReadWriteOnce" ]
36+ {{- if (ne "-" .Values.netdataOpentelemetry.persistence.storageclass) }}
37+ storageClassName : " {{ .Values.netdataOpentelemetry.persistence.storageclass }}"
38+ {{- end }}
39+ resources :
40+ requests :
41+ storage : 1Gi
42+
2243{{- end }}
Original file line number Diff line number Diff line change @@ -976,16 +976,19 @@ netdataOpentelemetry:
976976
977977 # -- DNS policy for pod
978978 # @section -- Netdata OpenTelemetry
979- dnsPolicy : Default
979+ dnsPolicy : ClusterFirst
980980
981+ # Volumes to create are called varlib and varlog
982+ # varlib stores the alerts information and claimID of the agent. Static size of 1Gi
983+ # varlog volume stores the logs. Size can be adjusted with persistence.volumesize
981984 persistence :
982- # -- Whether should use a persistent volume
985+ # -- Whether to use persistent volumes
983986 # @section -- Netdata OpenTelemetry
984987 enabled : true
985- # -- The storage class for the persistent volume claim
988+ # -- The storage class for the persistent volume claim (both varlib and varlog volumes)
986989 # @section -- Netdata OpenTelemetry
987990 storageclass : " -"
988- # -- The storage space for the PVC
991+ # -- The storage space for the logs (varlog volume)
989992 # @section -- Netdata OpenTelemetry
990993 volumesize : 10Gi
991994
You can’t perform that action at this time.
0 commit comments