sysdig-rc.yaml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. #Use this sysdig.yaml when Daemon Sets are NOT enabled on Kubernetes (minimum version 1.1.1). If Daemon Sets are available, use the other example sysdig.yaml - that is the recommended method.
  2. apiVersion: v1
  3. kind: ReplicationController
  4. metadata:
  5. name: sysdig-agent
  6. labels:
  7. app: sysdig-agent
  8. spec:
  9. replicas: 100 #REQUIRED - replace with the maximum number of slave nodes in the cluster
  10. template:
  11. spec:
  12. volumes:
  13. - name: docker-sock
  14. hostPath:
  15. path: /var/run/docker.sock
  16. - name: dev-vol
  17. hostPath:
  18. path: /dev
  19. - name: proc-vol
  20. hostPath:
  21. path: /proc
  22. - name: boot-vol
  23. hostPath:
  24. path: /boot
  25. - name: modules-vol
  26. hostPath:
  27. path: /lib/modules
  28. - name: usr-vol
  29. hostPath:
  30. path: /usr
  31. hostNetwork: true
  32. hostPID: true
  33. containers:
  34. - name: sysdig-agent
  35. image: sysdig/agent
  36. ports:
  37. - containerPort: 6666
  38. hostPort: 6666
  39. securityContext:
  40. privileged: true
  41. env:
  42. - name: ACCESS_KEY #REQUIRED - replace with your Sysdig Cloud access key
  43. value: 8312341g-5678-abcd-4a2b2c-33bcsd655
  44. # - name: K8S_DELEGATED_NODE #OPTIONAL - only necessary when connecting remotely to API server
  45. # value: <DELEGATED NODE IP>
  46. # - name: K8S_API_URI #OPTIONAL - only necessary when connecting remotely to API server
  47. # value: "http[s]://[username:passwd@]host[:port]"
  48. # - name: TAGS #OPTIONAL
  49. # value: linux:ubuntu,dept:dev,local:nyc
  50. # - name: COLLECTOR #OPTIONAL
  51. # value: 192.168.183.200
  52. # - name: SECURE #OPTIONAL
  53. # value: false
  54. # - name: CHECK_CERTIFICATE #OPTIONAL
  55. # value: false
  56. # - name: ADDITIONAL_CONF #OPTIONAL
  57. # value: "app_checks:\n - name: nginx\n check_module: nginx\n pattern:\n comm: nginx\n conf:\n nginx_status_url: "http://localhost:{port}/nginx_status\""
  58. volumeMounts:
  59. - mountPath: /host/var/run/docker.sock
  60. name: docker-sock
  61. readOnly: false
  62. - mountPath: /host/dev
  63. name: dev-vol
  64. readOnly: false
  65. - mountPath: /host/proc
  66. name: proc-vol
  67. readOnly: true
  68. - mountPath: /host/boot
  69. name: boot-vol
  70. readOnly: true
  71. - mountPath: /host/lib/modules
  72. name: modules-vol
  73. readOnly: true
  74. - mountPath: /host/usr
  75. name: usr-vol
  76. readOnly: true