Skip to content
Snippets Groups Projects
Unverified Commit 630bc311 authored by paulfantom's avatar paulfantom
Browse files

jsonnet: do not compose image string for node-exporter

parent da817040
No related branches found
No related tags found
No related merge requests found
...@@ -21,7 +21,7 @@ local nodeExporter = import './node-exporter/node-exporter.libsonnet'; ...@@ -21,7 +21,7 @@ local nodeExporter = import './node-exporter/node-exporter.libsonnet';
nodeExporter: nodeExporter({ nodeExporter: nodeExporter({
namespace: $._config.namespace, namespace: $._config.namespace,
version: '1.0.1', version: '1.0.1',
imageRepo: 'quay.io/prometheus/node-exporter', image: 'quay.io/prometheus/node-exporter:v1.0.1',
}), }),
kubePrometheus+:: { kubePrometheus+:: {
namespace: { namespace: {
......
...@@ -4,8 +4,7 @@ local defaults = { ...@@ -4,8 +4,7 @@ local defaults = {
local defaults = self, local defaults = self,
namespace: error 'must provide namespace', namespace: error 'must provide namespace',
version: error 'must provide version', version: error 'must provide version',
imageRepo: error 'must provide version', image: error 'must provide version',
// image: "",
resources: { resources: {
requests: { cpu: '102m', memory: '180Mi' }, requests: { cpu: '102m', memory: '180Mi' },
limits: { cpu: '250m', memory: '180Mi' }, limits: { cpu: '250m', memory: '180Mi' },
...@@ -135,7 +134,7 @@ function(params) { ...@@ -135,7 +134,7 @@ function(params) {
daemonset: daemonset:
local nodeExporter = { local nodeExporter = {
name: 'node-exporter', name: 'node-exporter',
image: ne.config.imageRepo + ':v' + ne.config.version, image: ne.config.image,
args: [ args: [
'--web.listen-address=' + std.join(':', [ne.config.listenAddress, std.toString(ne.config.port)]), '--web.listen-address=' + std.join(':', [ne.config.listenAddress, std.toString(ne.config.port)]),
'--path.sysfs=/host/sys', '--path.sysfs=/host/sys',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment