humio.yaml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. apiVersion: v1
  2. kind: Service
  3. metadata:
  4. name: humio
  5. labels:
  6. run: humio
  7. spec:
  8. ports:
  9. - name: zookeeper
  10. port: 2181
  11. targetPort: 2181
  12. - name: kafka
  13. port: 9092
  14. targetPort: 9092
  15. - name: http
  16. port: 9081
  17. targetPort: 9081
  18. selector:
  19. run: humio
  20. # type: LoadBalancer
  21. #status:
  22. # loadBalancer: {}
  23. ---
  24. apiVersion: v1
  25. kind: PersistentVolume
  26. metadata:
  27. name: humio-data
  28. spec:
  29. capacity:
  30. storage: 10Ti
  31. volumeMode: Filesystem
  32. accessModes:
  33. - ReadWriteMany
  34. persistentVolumeReclaimPolicy: Retain # Keep 4eva
  35. storageClassName: default
  36. mountOptions:
  37. - hard
  38. - nfsvers=3
  39. nfs:
  40. path: /mnt/DroboFS/Shares/Kubernetes/volumes/static/humio-data
  41. server: 10.42.42.10
  42. claimRef:
  43. name: humio-data
  44. namespace: default
  45. ---
  46. apiVersion: v1
  47. kind: PersistentVolumeClaim
  48. metadata:
  49. name: humio-data
  50. spec:
  51. storageClassName: standard
  52. accessModes:
  53. - ReadWriteMany
  54. resources:
  55. requests:
  56. storage: 10Ti
  57. status: {}
  58. ---
  59. apiVersion: v1
  60. kind: PersistentVolume
  61. metadata:
  62. name: humio-config
  63. spec:
  64. capacity:
  65. storage: 5Mi
  66. volumeMode: Filesystem
  67. accessModes:
  68. - ReadWriteMany
  69. persistentVolumeReclaimPolicy: Retain # Keep 4eva
  70. storageClassName: default
  71. mountOptions:
  72. - hard
  73. - nfsvers=3
  74. nfs:
  75. path: /mnt/DroboFS/Shares/Kubernetes/volumes/static/humio-config
  76. server: 10.42.42.10
  77. claimRef:
  78. name: humio-config
  79. namespace: default
  80. ---
  81. apiVersion: v1
  82. kind: PersistentVolumeClaim
  83. metadata:
  84. name: humio-config
  85. annotations:
  86. nfs.io/storage-path: "humio-config"
  87. spec:
  88. storageClassName: default
  89. accessModes:
  90. - ReadWriteMany
  91. resources:
  92. requests:
  93. storage: 5Mi
  94. status: {}
  95. ---
  96. apiVersion: v1
  97. kind: PersistentVolume
  98. metadata:
  99. name: humio-kafka-data
  100. spec:
  101. capacity:
  102. storage: 5Mi
  103. volumeMode: Filesystem
  104. accessModes:
  105. - ReadWriteMany
  106. persistentVolumeReclaimPolicy: Retain # Keep 4eva
  107. storageClassName: default
  108. mountOptions:
  109. - hard
  110. - nfsvers=3
  111. nfs:
  112. path: /mnt/DroboFS/Shares/Kubernetes/volumes/static/humio-kafka-data
  113. server: 10.42.42.10
  114. claimRef:
  115. name: humio-kafka-data
  116. namespace: default
  117. ---
  118. apiVersion: v1
  119. kind: PersistentVolumeClaim
  120. metadata:
  121. name: humio-kafka-data
  122. annotations:
  123. nfs.io/storage-path: "humio-kafka-data"
  124. spec:
  125. storageClassName: default
  126. accessModes:
  127. - ReadWriteMany
  128. resources:
  129. requests:
  130. storage: 5Mi
  131. status: {}
  132. ---
  133. apiVersion: apps/v1
  134. kind: Deployment
  135. metadata:
  136. name: humio
  137. spec:
  138. replicas: 1
  139. selector:
  140. matchLabels:
  141. run: humio
  142. strategy:
  143. type: Recreate
  144. template:
  145. metadata:
  146. labels:
  147. run: humio
  148. spec:
  149. terminationGracePeriodSeconds: 30
  150. containers:
  151. - image: krishnarajeshs/humio_arm:v1.0
  152. imagePullPolicy: "Always"
  153. name: humio
  154. env:
  155. - name: TZ
  156. value: US/Michigan
  157. - name: user
  158. value: root
  159. - name: HUMIO_PORT
  160. value: "9081"
  161. - name: ELASTIC_PORT
  162. value: "9202"
  163. - name: ZOOKEEPER_URL
  164. value: "127.0.0.1:2181"
  165. - name: KAFKA_SERVERS
  166. value: "127.0.0.1:9092"
  167. - name: EXTERNAL_URL
  168. value: "http://127.0.0.1:9081"
  169. - name: PUBLIC_URL
  170. value: "https://humio.monkeybox.org"
  171. - name: HUMIO_SOCKET_BIND
  172. value: "0.0.0.0"
  173. - name: HUMIO_HTTP_BIND
  174. value: "0.0.0.0"
  175. - name: HUMIO_JVM_ARGS
  176. value: "-Xss2M"
  177. - name: AUTHENTICATION_METHOD
  178. value: "single-user"
  179. - name: SINGLE_USER_USERNAME
  180. value: "fdamstra"
  181. - name: SINGLE_USER_PASSWORD
  182. value: "Bluem00n"
  183. ports:
  184. - containerPort: 2181
  185. - containerPort: 9092
  186. - containerPort: 9081
  187. resources:
  188. limits:
  189. memory: "8192Mi"
  190. cpu: "4000m"
  191. requests:
  192. memory: "2048Mi"
  193. cpu: "1000m"
  194. volumeMounts:
  195. - mountPath: /data
  196. name: humio-data
  197. - mountPath: /etc/humio
  198. name: humio-config
  199. - mountPath: /data/kafka-data
  200. name: humio-kafka-data
  201. restartPolicy: Always
  202. volumes:
  203. - name: humio-config
  204. persistentVolumeClaim:
  205. claimName: humio-config
  206. - name: humio-data
  207. persistentVolumeClaim:
  208. claimName: humio-data
  209. - name: humio-kafka-data
  210. persistentVolumeClaim:
  211. claimName: humio-kafka-data
  212. # dnsPolicy: "None"
  213. # dnsConfig:
  214. # nameservers:
  215. # - 10.42.42.239
  216. # - 10.42.42.1
  217. # searches:
  218. # - default.svc.cluster.local
  219. # - svc.cluster.local
  220. # - cluster.local
  221. # options:
  222. # - name: ndots
  223. # value: "2"
  224. # - name: edns0
  225. # - name: trust-ad
  226. status: {}
  227. ---
  228. # Hosting
  229. apiVersion: networking.k8s.io/v1
  230. kind: Ingress
  231. metadata:
  232. name: humio-ingress
  233. annotations:
  234. cert-manager.io/cluster-issuer: "letsencrypt-prod"
  235. ## No basic auth for humio
  236. ## type of authentication
  237. #nginx.ingress.kubernetes.io/auth-type: basic
  238. ## name of the secret that contains the user/password definitions
  239. #nginx.ingress.kubernetes.io/auth-secret: basic-auth
  240. ## message to display with an appropriate context why the authentication is required
  241. #nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required - Octoprint'
  242. spec:
  243. tls:
  244. - hosts:
  245. - humio.monkeybox.org
  246. secretName: humio-tls
  247. rules:
  248. - host: humio.monkeybox.org
  249. http:
  250. paths:
  251. - path: /
  252. pathType: Prefix
  253. backend:
  254. service:
  255. name: humio
  256. port:
  257. number: 9081