Merge pull request #97 from pascal71/master

Added securityContext.priviledged = true to fix RPi GPU temp issue
This commit is contained in:
Carlos Eduardo 2020-10-07 16:13:46 -03:00 committed by GitHub
commit c29680b230
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,6 +49,7 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';
'/bin/rpi_exporter', '/bin/rpi_exporter',
'--web.listen-address=127.0.0.1:9243', '--web.listen-address=127.0.0.1:9243',
]) + ]) +
container.mixin.securityContext.withPrivileged(true) +
container.mixin.resources.withRequests({ cpu: '50m', memory: '50Mi' }) + container.mixin.resources.withRequests({ cpu: '50m', memory: '50Mi' }) +
container.mixin.resources.withLimits({ cpu: '100m', memory: '100Mi' }); container.mixin.resources.withLimits({ cpu: '100m', memory: '100Mi' });