# Elasticsearch

**URL:** <https://discuss.elastic.co/t/elasticsearch/329426>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Created:** [April 5, 2023, 11:58am UTC](https://discuss.elastic.co/t/elasticsearch/329426 "2023-04-05T11:58:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MahithaSarala](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mahithasarala/32/101721_2.png) [@MahithaSarala](https://discuss.elastic.co/u/MahithaSarala)\
**Post date:** [April 5, 2023, 11:58am UTC](https://discuss.elastic.co/t/elasticsearch/329426/1 "2023-04-05T11:58:47Z")

</div>

Hi team,

How to deploy metric beats for elasticsearch and kibana using ECK, Is there any document for this .  
because not able to see all logs for kibana and elasticsearch .  
Could you help on this

---

<div class="post-metadata">

**Author:** ![S.raha](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/s.raha/32/117801_2.png) [@S.raha](https://discuss.elastic.co/u/S.raha)\
**Post date:** [April 10, 2023, 3:28pm UTC](https://discuss.elastic.co/t/elasticsearch/329426/2 "2023-04-10T15:28:54Z")

</div>

Hi team,  
I really need your help, I'm trying to apply kibana.yml file but getting  
kubectl apply -f kibana.yml -n elastic  
Error from server (BadRequest): error when creating "kibana.yml": Kibana in version "v1" cannot be handled as a Kibana: strict decoding error: unknown field "spec.ports", unknown field "spec.selector", unknown field "spec.type

**apiVersion: [kibana.k8s.elastic.co/v1](http://kibana.k8s.elastic.co/v1)**  
**kind: Kibana**  
**metadata:**  
\*\* name: kibana\*\*  
**spec:**  
\*\* version: 8.7.0\*\*  
\*\* count: 1\*\*  
\*\* elasticsearchRef:\*\*  
\*\* name: elasticsearch-cluster\*\*  
\*\* http:\*\*  
\*\* tls:\*\*  
\*\* selfSignedCertificate:\*\*  
\*\* disabled: true\*\*  
\*\* selector:\*\*  
\*\* [kibana.k8s.elastic.co/name:](http://kibana.k8s.elastic.co/name:) kibana\*\*  
\*\* type: NodePort\*\*  
\*\* ports:\*\*  
\*\* - name: http\*\*  
\*\* protocol: TCP\*\*  
\*\* port: 5601\*\*  
\*\* targetPort: 5601\*\*

---

<div class="post-metadata">

**Author:** ![michael.morello](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michael.morello/32/47448_2.png) [@michael.morello](https://discuss.elastic.co/u/michael.morello)\
**Post date:** [April 12, 2023, 5:23am UTC](https://discuss.elastic.co/t/elasticsearch/329426/3 "2023-04-12T05:23:51Z")

</div>

Hi,

> [@MahithaSarala](#):
>
> How to deploy metric beats for elasticsearch and kibana using ECK, Is there any document for this .

If you mean stack monitoring we have a documentation here: [Stack Monitoring | Elastic Cloud on Kubernetes [master] | Elastic](https://www.elastic.co/guide/en/cloud-on-k8s/master/k8s-stack-monitoring.html) It'll deploy Beat as sidecars to collect logs and metrics from Stack components.

> Error from server (BadRequest): error when creating "kibana.yml": Kibana in version "v1" cannot be handled as a Kibana: strict decoding error: unknown field "spec.ports", unknown field "spec.selector", unknown field "spec.type

Please copy/paste your example in a "preformatted section", by using the `</>` button at the top of this text editor.  
The message means that there is no `spec.ports` fields in the Kibana spec, the list of all the available fields are here: [kibana.k8s.elastic.co/v1 | Elastic Cloud on Kubernetes [master] | Elastic](https://www.elastic.co/guide/en/cloud-on-k8s/master/k8s-api-kibana-k8s-elastic-co-v1.html#k8s-api-github-com-elastic-cloud-on-k8s-v2-pkg-apis-kibana-v1-kibanaspec)  
If you are looking for a way to expose Kibana outside of your K8S cluster I would suggest to read this documentation: [Services | Elastic Cloud on Kubernetes [master] | Elastic](https://www.elastic.co/guide/en/cloud-on-k8s/master/k8s-services.html#k8s-allow-public-access)  
If you are looking for a way to customize the `Service` please refer to the `spec.http.service` field: [common.k8s.elastic.co/v1 | Elastic Cloud on Kubernetes [master] | Elastic](https://www.elastic.co/guide/en/cloud-on-k8s/master/k8s-api-common-k8s-elastic-co-v1.html#k8s-api-github-com-elastic-cloud-on-k8s-v2-pkg-apis-common-v1-servicetemplate)

---

<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:** [May 10, 2023, 5:24am UTC](https://discuss.elastic.co/t/elasticsearch/329426/4 "2023-05-10T05:24:25Z")

</div>

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