Created
July 24, 2017 03:31
-
-
Save fzerorubigd/4cb4b641912bbaed6985936d798e0359 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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