opsgenie / kubernetes-event-exporter

Export Kubernetes events to multiple destinations with routing and filtering

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add configuration for api-server endpoint

yngwiewang opened this issue · comments

Hi team,
My Kubernetes cluster doesn't implement TLS authentication, so I changed a few code to fit my cluster. I found a TODO in source code: // TODO: Read KUBECONFIG env variable as fallback. Usually kubernetes-event-exporter deploys in Kubernetes cluster so I don't think it's very convenient to use KUBECONFIG . What about add a configuration for api-server endpoint, like Prometheus' kubernetes_sd_configs? If it's ok, I'm glad to do the job.