filebeat-deployment.yaml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: filebeat
  5. spec:
  6. selector:
  7. matchLabels:
  8. app.kubernetes.io/name: filebeat
  9. app.kubernetes.io/part-of: opensearch
  10. strategy:
  11. type: Recreate
  12. template:
  13. metadata:
  14. labels:
  15. app.kubernetes.io/name: filebeat
  16. app.kubernetes.io/part-of: opensearch
  17. spec:
  18. containers:
  19. - image: docker-registry.wugi.info/monitoring/filebeat-oss:7.12.1
  20. name: filebeat
  21. args:
  22. - filebeat
  23. - -e
  24. - -strict.perms=false
  25. env:
  26. - name: name
  27. value: guixsd
  28. securityContext:
  29. runAsUser: 0
  30. runAsGroup: 0
  31. volumeMounts:
  32. - mountPath: /usr/share/filebeat/filebeat.yml
  33. subPath: filebeat.yml
  34. name: filebeat-claim0
  35. readOnly: true
  36. - mountPath: /mnt/log
  37. name: filebeat-claim1
  38. readOnly: true
  39. - mountPath: /home/oleg/.local/var/log
  40. name: filebeat-claim2
  41. readOnly: true
  42. - mountPath: /home/oleg/.local/share/qBittorrent/logs
  43. name: filebeat-claim3
  44. readOnly: true
  45. - mountPath: /var/lib/docker/containers
  46. name: filebeat-claim4
  47. readOnly: true
  48. - mountPath: /etc/localtime
  49. name: filebeat-claim5
  50. readOnly: true
  51. - mountPath: /etc/client/ca.pem
  52. name: filebeat-claim6
  53. readOnly: true
  54. - mountPath: /etc/client/cert.pem
  55. name: filebeat-claim7
  56. readOnly: true
  57. - mountPath: /etc/client/cert.key
  58. name: filebeat-claim8
  59. readOnly: true
  60. hostname: guixsd
  61. volumes:
  62. - name: filebeat-claim0
  63. configMap:
  64. name: filebeat
  65. - name: filebeat-claim1
  66. hostPath:
  67. path: /var/log
  68. readOnly: true
  69. type: Directory
  70. - name: filebeat-claim2
  71. hostPath:
  72. path: /home/oleg/.local/var/log
  73. readOnly: true
  74. type: Directory
  75. - name: filebeat-claim3
  76. hostPath:
  77. path: /home/oleg/.local/share/qBittorrent/logs
  78. readOnly: true
  79. type: Directory
  80. - name: filebeat-claim4
  81. hostPath:
  82. path: /var/lib/docker/containers
  83. readOnly: true
  84. type: Directory
  85. - name: filebeat-claim5
  86. hostPath:
  87. path: /etc/localtime
  88. readOnly: true
  89. type: File
  90. - name: filebeat-claim6
  91. hostPath:
  92. path: /etc/opensearch/root-ca.pem
  93. readOnly: true
  94. type: File
  95. - name: filebeat-claim7
  96. hostPath:
  97. path: /etc/opensearch/kirk.pem
  98. readOnly: true
  99. type: File
  100. - name: filebeat-claim8
  101. hostPath:
  102. path: /etc/opensearch/kirk-key.pem
  103. readOnly: true
  104. type: File