# Can filebeat support k8s master with http?

**URL:** <https://discuss.elastic.co/t/can-filebeat-support-k8s-master-with-http/132014>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [May 16, 2018, 2:05am UTC](https://discuss.elastic.co/t/can-filebeat-support-k8s-master-with-http/132014 "2018-05-16T02:05:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaku\_li](https://avatars.discourse-cdn.com/v4/letter/k/8797f3/32.png) [@kaku\_li](https://discuss.elastic.co/u/kaku_li)\
**Post date:** [May 16, 2018, 2:05am UTC](https://discuss.elastic.co/t/can-filebeat-support-k8s-master-with-http/132014/1 "2018-05-16T02:05:51Z")

</div>

I find that no matter in\_cluster is true or false, filebeat always visit k8s api server with https method. I also don't have a kubeconfig file. if in\_cluster is false, can filebeat add a config to specify the apiserver and use http method?

---

<div class="post-metadata">

**Author:** ![exekias](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/exekias/32/28718_2.png) [@exekias](https://discuss.elastic.co/u/exekias)\
**Post date:** [May 16, 2018, 3:13pm UTC](https://discuss.elastic.co/t/can-filebeat-support-k8s-master-with-http/132014/2 "2018-05-16T15:13:12Z")

</div>

Hi @kaku_li, if `in_cluster` is false you need to specify a `kube_config` file, that would contain the details on how to connect to the server.

Could you explain a little bit about your use case? I'm particularly interested on how are you running kubernetes, and where/how are you trying to deploy filebeat.

Best regards

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 13, 2018, 3:13pm UTC](https://discuss.elastic.co/t/can-filebeat-support-k8s-master-with-http/132014/3 "2018-06-13T15:13:13Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
