TheHive icon indicating copy to clipboard operation
TheHive copied to clipboard

Helm Chart

Open romans8 opened this issue 5 years ago • 4 comments

Request Type

Feature Request

Work Environment

K8's

Problem Description

Will there be a helm chart?

romans8 avatar Feb 07 '20 21:02 romans8

++ I would also like a helm chart please.

Mustache84 avatar Jul 02 '20 03:07 Mustache84

Unofficial chart https://github.com/jaredjennings/helm-thehive now exists, and already has issues. Fixes welcome!

jaredjennings avatar Mar 18 '21 21:03 jaredjennings

@jaredjennings Any updates on the HA of thehive k8s setup ?

upenderadepu-moe avatar Sep 12 '22 10:09 upenderadepu-moe

Do you mean high availability? What exists now with TheHive 4 on k8s using the helm chart is that TheHive is run using a k8s Deployment object, with 1 replica. If that replica goes down (e.g. the node it's on goes down, or a health check against the app fails), Kubernetes will stand up a new Pod elsewhere. From outside the app, it would look like the app was restarted.

If you use local storage, indexing, or attachment storage, there is a risk that the unhealthy instance could prevent a new instance from standing up, by failing to relinquish those PersistentVolumeClaims. But for a production deployment where you care about availability, you should probably use highly available database, index, and attachment storage rather than these local storage options; if you do that, you won't face this risk.

Theoretically it is possible to do better: Akka supports clustering, and someone has made a plugin that lets Akka figure out what the members of its cluster are by asking Kubernetes. As far as I can tell, this has to be included at build time, and may require minor code changes. If this were all properly integrated, the administrator should be able merely to specify multiple replicas for the Deployment, and instantly gain both fault tolerance and load balancing. I haven't needed it yet, so I haven't found out more than this. See also https://github.com/jaredjennings/helm-thehive/issues/18.

jaredjennings avatar Sep 13 '22 23:09 jaredjennings