_persistence.tpl 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. {{- define "netdata.persistence" -}}
  2. persistence:
  3. config:
  4. enabled: true
  5. {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.netdataStorage.config) | nindent 4 }}
  6. targetSelector:
  7. netdata:
  8. netdata:
  9. mountPath: /etc/netdata
  10. cache:
  11. enabled: true
  12. {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.netdataStorage.cache) | nindent 4 }}
  13. targetSelector:
  14. netdata:
  15. netdata:
  16. mountPath: /var/cache/netdata
  17. lib:
  18. enabled: true
  19. {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.netdataStorage.lib) | nindent 4 }}
  20. targetSelector:
  21. netdata:
  22. netdata:
  23. mountPath: /var/lib/netdata
  24. tmp:
  25. enabled: true
  26. type: emptyDir
  27. targetSelector:
  28. netdata:
  29. netdata:
  30. mountPath: /tmp
  31. {{- range $idx, $storage := .Values.netdataStorage.additionalStorages }}
  32. {{ printf "netdata-%v:" (int $idx) }}
  33. enabled: true
  34. {{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 4 }}
  35. targetSelector:
  36. netdata:
  37. netdata:
  38. mountPath: {{ $storage.mountPath }}
  39. {{- end }}
  40. os-release:
  41. enabled: true
  42. type: hostPath
  43. hostPath: /etc/os-release
  44. targetSelector:
  45. netdata:
  46. netdata:
  47. mountPath: /host/etc/os-release
  48. readOnly: true
  49. sys:
  50. enabled: true
  51. type: hostPath
  52. hostPath: /sys
  53. targetSelector:
  54. netdata:
  55. netdata:
  56. mountPath: /host/sys
  57. readOnly: true
  58. proc:
  59. enabled: true
  60. type: hostPath
  61. hostPath: /proc
  62. targetSelector:
  63. netdata:
  64. netdata:
  65. mountPath: /host/proc
  66. readOnly: true
  67. etc-passwd:
  68. enabled: true
  69. type: hostPath
  70. hostPath: /etc/passwd
  71. targetSelector:
  72. netdata:
  73. netdata:
  74. mountPath: /host/etc/passwd
  75. readOnly: true
  76. etc-group:
  77. enabled: true
  78. type: hostPath
  79. hostPath: /etc/group
  80. targetSelector:
  81. netdata:
  82. netdata:
  83. mountPath: /host/etc/group
  84. readOnly: true
  85. {{- end -}}