From 903e98b07c73f543cde0e81aa25eb4c12eea53fb Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Mon, 2 May 2022 01:14:40 +0300 Subject: [PATCH] fix(netdata): make host mounts readonly (#2596) * fix(netdata): make host mounts readonly * actually mount hostpaths as host paths --- charts/incubator/netdata/Chart.yaml | 2 +- charts/incubator/netdata/values.yaml | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/charts/incubator/netdata/Chart.yaml b/charts/incubator/netdata/Chart.yaml index d0700922c5f..32052b49697 100644 --- a/charts/incubator/netdata/Chart.yaml +++ b/charts/incubator/netdata/Chart.yaml @@ -18,7 +18,7 @@ maintainers: name: netdata sources: - https://github.com/netdata -version: 0.0.1 +version: 0.0.2 annotations: truecharts.org/catagories: | - utilities diff --git a/charts/incubator/netdata/values.yaml b/charts/incubator/netdata/values.yaml index 0d4ccb07fc9..da2a411e474 100644 --- a/charts/incubator/netdata/values.yaml +++ b/charts/incubator/netdata/values.yaml @@ -67,34 +67,34 @@ persistence: mountPath: "/var/cache/netdata" passwd: enabled: true + type: hostPath hostPath: "/etc/passwd" mountPath: "/host/etc/passwd" - hostPathType: "" - readOnly: false + readOnly: true group: enabled: true + type: hostPath hostPath: "/etc/group" mountPath: "/host/etc/group" - hostPathType: "" - readOnly: false + readOnly: true proc: enabled: true + type: hostPath hostPath: "/proc" mountPath: "/host/proc" - hostPathType: "" - readOnly: false + readOnly: true sys: enabled: true + type: hostPath hostPath: "/sys" mountPath: "/host/sys" - hostPathType: "" - readOnly: false + readOnly: true os: enabled: true + type: hostPath hostPath: "/etc/os-release" mountPath: "/host/etc/os-release" - hostPathType: "" - readOnly: false + readOnly: true initContainers: create-config: