Skip to content
This repository has been archived by the owner on Sep 21, 2020. It is now read-only.

Commit

Permalink
GPII-2830: make node_exporter export metrics for EBS volumes.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtyler committed Feb 16, 2018
1 parent dee9363 commit 067e8a4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
22 changes: 9 additions & 13 deletions modules/deploy/17-prometheus-k8s-node-exporter-daemonset.yml
Expand Up @@ -14,9 +14,6 @@ spec:
hostPID: true
containers:
- image: quay.io/prometheus/node-exporter:v0.15.0
args:
- "--path.procfs=/host/proc"
- "--path.sysfs=/host/sys"
name: node-exporter
ports:
- containerPort: 9100
Expand All @@ -29,20 +26,19 @@ spec:
limits:
memory: 50Mi
cpu: 200m
securityContext:
runAsUser: 0
volumeMounts:
- name: proc
readOnly: true
mountPath: /host/proc
- name: sys
- name: rootfs
readOnly: true
mountPath: /host/sys
mountPropagation: HostToContainer # Alpha in k8s 1.8; requires kubelet '--feature-gates MountPropagation=true'
mountPath: /host/rootfs
tolerations:
- effect: NoSchedule
operator: Exists
volumes:
- name: proc
- name: rootfs
hostPath:
path: /proc
- name: sys
hostPath:
path: /sys
path: /
updateStrategy:
type: RollingUpdate
2 changes: 2 additions & 0 deletions modules/k8s/cluster-custom-settings.yml.erb
Expand Up @@ -5,3 +5,5 @@ spec:
terminatedPodGCThreshold: 100 # Wild, untested guess
kubelet:
anonymousAuth: false
featureGates:
MountPropagation: "true"

0 comments on commit 067e8a4

Please sign in to comment.