humio.yaml.originaldirectories 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  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. ports:
  178. - containerPort: 2181
  179. - containerPort: 9092
  180. - containerPort: 9081
  181. resources:
  182. limits:
  183. memory: "4096Mi"
  184. cpu: "2000m"
  185. requests:
  186. memory: "500Mi"
  187. cpu: "1000m"
  188. volumeMounts:
  189. - mountPath: /opt/humio/data
  190. name: humio-data
  191. - mountPath: /opt/humio/config
  192. name: humio-config
  193. - mountPath: /opt/humio/data/kafka-data
  194. name: humio-kafka-data
  195. restartPolicy: Always
  196. volumes:
  197. - name: humio-config
  198. persistentVolumeClaim:
  199. claimName: humio-config
  200. - name: humio-data
  201. persistentVolumeClaim:
  202. claimName: humio-data
  203. - name: humio-kafka-data
  204. persistentVolumeClaim:
  205. claimName: humio-kafka-data
  206. # dnsPolicy: "None"
  207. # dnsConfig:
  208. # nameservers:
  209. # - 10.42.42.239
  210. # - 10.42.42.1
  211. # searches:
  212. # - default.svc.cluster.local
  213. # - svc.cluster.local
  214. # - cluster.local
  215. # options:
  216. # - name: ndots
  217. # value: "2"
  218. # - name: edns0
  219. # - name: trust-ad
  220. status: {}
  221. ---
  222. # Hosting
  223. apiVersion: networking.k8s.io/v1
  224. kind: Ingress
  225. metadata:
  226. name: humio-ingress
  227. annotations:
  228. cert-manager.io/cluster-issuer: "letsencrypt-stage"
  229. ## No basic auth for humio
  230. ## type of authentication
  231. #nginx.ingress.kubernetes.io/auth-type: basic
  232. ## name of the secret that contains the user/password definitions
  233. #nginx.ingress.kubernetes.io/auth-secret: basic-auth
  234. ## message to display with an appropriate context why the authentication is required
  235. #nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required - Octoprint'
  236. spec:
  237. tls:
  238. - hosts:
  239. - humio.monkeybox.org
  240. secretName: humio-tls
  241. rules:
  242. - host: humio.monkeybox.org
  243. http:
  244. paths:
  245. - path: /
  246. pathType: Prefix
  247. backend:
  248. service:
  249. name: humio
  250. port:
  251. number: 9081