Skip to content

Commit

Permalink
Merge pull request #426 from CARV-ICS-FORTH/cadvisor
Browse files Browse the repository at this point in the history
fix issues of cadvisor when used in conjuction with rootless engines
  • Loading branch information
fnikolai authored Aug 18, 2023
2 parents e6239a0 + 87a6add commit f80a214
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Changes Since Last Release

### Changed defaults / behaviours
- ...
- Prevent cadvisor from failing when cgroup is not mounted.

### New Features & Functionality
- ...
Expand Down
4 changes: 2 additions & 2 deletions charts/system/templates/telemetry/cadvisor/cadvisor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ spec:
# to find out the reason. Just exit with success and let experiment to continue.
[ -d "/proc/${mainPID}" ] || { echo "/proc/${mainPID} does not exists."; exit 0; }
# Unmount the local cgroup
umount /sys/fs/cgroup
# Unmount the local cgroup (return successfully if cgroup is not mounted)
umount /sys/fs/cgroup || return 0
# Tap into the cgroup of the main container, and mount it locally
nsenter -t ${mainPID} -C -- mount -t cgroup2 none /sys/fs/cgroup
Expand Down

0 comments on commit f80a214

Please sign in to comment.