Skip to content

Commit

Permalink
jsonnet: make node_exporter pods tolerate
Browse files Browse the repository at this point in the history
  • Loading branch information
paulfantom committed Jun 17, 2019
1 parent e7c369e commit 3b4ebe6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
5 changes: 1 addition & 4 deletions assets/node-exporter/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,7 @@ spec:
securityContext: {}
serviceAccountName: node-exporter
tolerations:
- effect: NoExecute
operator: Exists
- effect: NoSchedule
operator: Exists
- operator: Exists
volumes:
- hostPath:
path: /proc
Expand Down
3 changes: 1 addition & 2 deletions jsonnet/node-exporter.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@ local tlsVolumeName = 'node-exporter-tls';
volumes+: [volume.fromSecret(tlsVolumeName, 'node-exporter-tls')],
securityContext: {},
tolerations: [
toleration.new() + toleration.withOperator('Exists') + toleration.withEffect('NoExecute'),
toleration.new() + toleration.withOperator('Exists') + toleration.withEffect('NoSchedule'),
{ operator: "Exists" },
],
},
},
Expand Down
4 changes: 2 additions & 2 deletions pkg/manifests/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3b4ebe6

Please sign in to comment.