mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-30 02:00:19 +00:00
62 lines
1.5 KiB
YAML
62 lines
1.5 KiB
YAML
|
apiVersion: extensions/v1beta1
|
||
|
kind: DaemonSet
|
||
|
metadata:
|
||
|
name: newrelic-agent
|
||
|
labels:
|
||
|
tier: monitoring
|
||
|
app: newrelic-agent
|
||
|
version: v1
|
||
|
spec:
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
name: newrelic
|
||
|
spec:
|
||
|
# Filter to specific nodes:
|
||
|
# nodeSelector:
|
||
|
# app: newrelic
|
||
|
hostPID: true
|
||
|
hostIPC: true
|
||
|
hostNetwork: true
|
||
|
containers:
|
||
|
- resources:
|
||
|
requests:
|
||
|
cpu: 0.15
|
||
|
securityContext:
|
||
|
privileged: true
|
||
|
env:
|
||
|
- name: NRSYSMOND_logfile
|
||
|
value: "/var/log/nrsysmond.log"
|
||
|
image: newrelic/nrsysmond
|
||
|
name: newrelic
|
||
|
command: [ "bash", "-c", "source /etc/kube-newrelic/config && /usr/sbin/nrsysmond -E -F" ]
|
||
|
volumeMounts:
|
||
|
- name: newrelic-config
|
||
|
mountPath: /etc/kube-newrelic
|
||
|
readOnly: true
|
||
|
- name: dev
|
||
|
mountPath: /dev
|
||
|
- name: run
|
||
|
mountPath: /var/run/docker.sock
|
||
|
- name: sys
|
||
|
mountPath: /sys
|
||
|
- name: log
|
||
|
mountPath: /var/log
|
||
|
volumes:
|
||
|
- name: newrelic-config
|
||
|
secret:
|
||
|
secretName: newrelic-config
|
||
|
- name: dev
|
||
|
hostPath:
|
||
|
path: /dev
|
||
|
- name: run
|
||
|
hostPath:
|
||
|
path: /var/run/docker.sock
|
||
|
type: Socket
|
||
|
- name: sys
|
||
|
hostPath:
|
||
|
path: /sys
|
||
|
- name: log
|
||
|
hostPath:
|
||
|
path: /var/log
|