-
Notifications
You must be signed in to change notification settings - Fork 50
Description
Is your feature request related to a problem? Please describe.
I'm trying to deploy harvest using K8s with a replicaSet (multiple instances of each poller are deployed to ensure HA).
By default, K8s sets the hostname to be the pods name, which has to be unique.
In my dashboards this causes problems as every time a new pod generates it shows up as a new poller/system.
Describe the solution you'd like
To ensure replication transparency, I would like to be able to override the hostname harvest communicates using an environment variable. The default should be the current behaviour, but when the variable is set, it overrides it with what ever is set.
Describe alternatives you've considered
For me the only alternative would be build my own image that overrides the entrypoint to run a script that forces the hostname change at container startup, similar to the implementation i described. Have not tested that so far but I'll try that.
Additional context
The current K8s implementation guide on the wiki is not realy suitable for most enterprise K8s environments, so i build my own using Helm and a custom containerfile.