github.com/qsunny/k8s@v0.0.0-20220101153623-e6dca256d5bf/examples-master/staging/newrelic-infrastructure/newrelic-infra-daemonset.yaml (about) 1 apiVersion: extensions/v1beta1 2 kind: DaemonSet 3 metadata: 4 name: newrelic-infra-agent 5 labels: 6 tier: monitoring 7 app: newrelic-infra-agent 8 version: v1 9 spec: 10 template: 11 metadata: 12 labels: 13 name: newrelic 14 spec: 15 # Filter to specific nodes: 16 # nodeSelector: 17 # app: newrelic 18 hostPID: true 19 hostIPC: true 20 hostNetwork: true 21 containers: 22 - resources: 23 requests: 24 cpu: 0.15 25 securityContext: 26 privileged: true 27 image: newrelic/infrastructure 28 name: newrelic 29 command: [ "bash", "-c", "source /etc/kube-nr-infra/config && /usr/bin/newrelic-infra" ] 30 volumeMounts: 31 - name: newrelic-config 32 mountPath: /etc/kube-nr-infra 33 readOnly: true 34 - name: dev 35 mountPath: /dev 36 - name: run 37 mountPath: /var/run/docker.sock 38 - name: log 39 mountPath: /var/log 40 - name: host-root 41 mountPath: /host 42 readOnly: true 43 volumes: 44 - name: newrelic-config 45 secret: 46 secretName: newrelic-config 47 - name: dev 48 hostPath: 49 path: /dev 50 - name: run 51 hostPath: 52 path: /var/run/docker.sock 53 - name: log 54 hostPath: 55 path: /var/log 56 - name: host-root 57 hostPath: 58 path: /