node-exporter: move hierarchical mounts to top level (#9818)

**Description**
Node exporter fails to start, apparently because it cannot create
additional mountpoints under `/host`. This PR changes the mount points
as follows:
* `procfs` changes from `/host/proc` to `/hostproc`.
* `sysfs` changes from `/host/sys` to `/hostsys`.
⚒️ Fixes  #9817 

**⚙️ Type of change**

- [ ] ⚙️ Feature/App addition
- [x] 🪛 Bugfix
- [ ] ⚠️ Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] 🔃 Refactor of current code

**🧪 How Has This Been Tested?**
Removed node-exporter and redeployed it with these changes. Node
exporter starts as expected.

**📃 Notes:**
None.

**✔️ Checklist:**

- [x] ⚖️ My code follows the style guidelines of this project
- [x] 👀 I have performed a self-review of my own code
- [ ] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [ ] 📄 I have made corresponding changes to the documentation
- [x] ⚠️ My changes generate no new warnings
- [ ] 🧪 I have added tests to this description that prove my fix is
effective or that my feature works
- [ ] ⬆️ I increased versions for any altered app according to semantic
versioning

** App addition**

If this PR is an app addition please make sure you have done the
following.

- [ ] 🪞 I have opened a PR on
[truecharts/containers](https://github.com/truecharts/containers) adding
the container to TrueCharts mirror repo.
- [ ] 🖼️ I have added an icon in the Chart's root directory called
`icon.png`

---

_Please don't blindly check all the boxes. Read them and only check
those that apply.
Those checkboxes are there for the reviewer to see what is this all
about and
the status of this PR with a quick glance._

---------

Signed-off-by: Todd Radel <todd@radel.us>
This commit is contained in:
Todd Radel 2023-06-23 02:52:58 -04:00 committed by GitHub
parent b5323144a4
commit c794daa76c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -17,8 +17,8 @@ workload:
containers:
main:
args:
- --path.procfs=/host/proc
- --path.sysfs=/host/sys
- --path.procfs=/hostproc
- --path.sysfs=/hostsys
- --web.listen-address=0.0.0.0:{{ .Values.service.main.ports.main.port }}
- --collector.filesystem.ignored-mount-points="^/(dev|proc|sys|var/lib/docker/.+|var/lib/kubelet/.+|var/db/system/.+|mnt/[a-zA-Z0-9-_\\.]+/ix-applications/.+)($|/)"
- --collector.filesystem.ignored-fs-types="^(autofs|binfmt_misc|cgroup|configfs|debugfs|devpts|devtmpfs|fusectl|hugetlbfs|mqueue|overlay|proc|procfs|pstore|rpc_pipefs|securityfs|sysfs|tracefs)$"
@ -50,12 +50,12 @@ persistence:
proc:
enabled: true
hostPath: /proc
mountPath: /host/proc
mountPath: /hostproc
readOnly: true
sys:
enabled: true
hostPath: /sys
mountPath: /host/sys
mountPath: /hostsys
readOnly: true
metrics: