Remove the app label for node-exporter
This commit is contained in:
@@ -68,7 +68,7 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';
|
|||||||
local toleration = daemonset.mixin.spec.template.spec.tolerationsType;
|
local toleration = daemonset.mixin.spec.template.spec.tolerationsType;
|
||||||
local containerEnv = container.envType;
|
local containerEnv = container.envType;
|
||||||
|
|
||||||
local podLabels = { app: 'node-exporter' };
|
local podLabels = $._config.nodeExporter.labels;
|
||||||
|
|
||||||
local existsToleration = toleration.new() +
|
local existsToleration = toleration.new() +
|
||||||
toleration.withOperator('Exists');
|
toleration.withOperator('Exists');
|
||||||
@@ -132,7 +132,7 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';
|
|||||||
daemonset.new() +
|
daemonset.new() +
|
||||||
daemonset.mixin.metadata.withName('node-exporter') +
|
daemonset.mixin.metadata.withName('node-exporter') +
|
||||||
daemonset.mixin.metadata.withNamespace($._config.namespace) +
|
daemonset.mixin.metadata.withNamespace($._config.namespace) +
|
||||||
daemonset.mixin.metadata.withLabels(podLabels + $._config.nodeExporter.labels) +
|
daemonset.mixin.metadata.withLabels(podLabels) +
|
||||||
daemonset.mixin.spec.selector.withMatchLabels(podLabels) +
|
daemonset.mixin.spec.selector.withMatchLabels(podLabels) +
|
||||||
daemonset.mixin.spec.template.metadata.withLabels(podLabels) +
|
daemonset.mixin.spec.template.metadata.withLabels(podLabels) +
|
||||||
daemonset.mixin.spec.template.spec.withTolerations([existsToleration]) +
|
daemonset.mixin.spec.template.spec.withTolerations([existsToleration]) +
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ apiVersion: apps/v1
|
|||||||
kind: DaemonSet
|
kind: DaemonSet
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: node-exporter
|
|
||||||
app.kubernetes.io/name: node-exporter
|
app.kubernetes.io/name: node-exporter
|
||||||
app.kubernetes.io/version: v0.18.1
|
app.kubernetes.io/version: v0.18.1
|
||||||
name: node-exporter
|
name: node-exporter
|
||||||
@@ -10,11 +9,13 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: node-exporter
|
app.kubernetes.io/name: node-exporter
|
||||||
|
app.kubernetes.io/version: v0.18.1
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: node-exporter
|
app.kubernetes.io/name: node-exporter
|
||||||
|
app.kubernetes.io/version: v0.18.1
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- args:
|
- args:
|
||||||
|
|||||||
@@ -13,4 +13,5 @@ spec:
|
|||||||
port: 9100
|
port: 9100
|
||||||
targetPort: https
|
targetPort: https
|
||||||
selector:
|
selector:
|
||||||
app: node-exporter
|
app.kubernetes.io/name: node-exporter
|
||||||
|
app.kubernetes.io/version: v0.18.1
|
||||||
|
|||||||
Reference in New Issue
Block a user