Skip to content

Instantly share code, notes, and snippets.

@fzerorubigd
Created July 24, 2017 03:31
Show Gist options
  • Select an option

  • Save fzerorubigd/4cb4b641912bbaed6985936d798e0359 to your computer and use it in GitHub Desktop.

Select an option

Save fzerorubigd/4cb4b641912bbaed6985936d798e0359 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Namespace
metadata:
name: monitoring
---
apiVersion: v1
kind: Pod
metadata:
name: netdata-master
namespace: monitoring
spec:
hostPID: true
hostIPC: true
hostNetwork: true
# I want to force this one on master.
tolerations:
- key: node-role.kubernetes.io/master
operator: Exists
effect: NoSchedule
containers:
- name: netdata
image: titpetric/netdata
imagePullPolicy: IfNotPresent
securityContext:
privileged: true
envFrom:
- configMapRef:
name: netdata-master-cfg
volumeMounts:
- name: proc
mountPath: /host/proc
readOnly: true
- name: run
mountPath: /var/run/docker.sock
- name: sys
mountPath: /host/sys
- name: cache
mountPath: /var/cache/netdata
volumes:
- name: proc
hostPath:
path: /proc
- name: run
hostPath:
path: /var/run/docker.sock
- name: sys
hostPath:
path: /sys
- name: cache
hostPath:
path: /global/netdata/cache
nodeSelector:
netdata: master-node
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment