# Kubernetes integration on ECK Kibana Fleet policy sample

**URL:** <https://discuss.elastic.co/t/kubernetes-integration-on-eck-kibana-fleet-policy-sample/326024>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Created:** [February 21, 2023, 5:08am UTC](https://discuss.elastic.co/t/kubernetes-integration-on-eck-kibana-fleet-policy-sample/326024 "2023-02-21T05:08:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brian\_Brockel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brian_brockel/32/117500_2.png) [@Brian\_Brockel](https://discuss.elastic.co/u/Brian_Brockel)\
**Post date:** [February 21, 2023, 5:08am UTC](https://discuss.elastic.co/t/kubernetes-integration-on-eck-kibana-fleet-policy-sample/326024/1 "2023-02-21T05:08:41Z")

</div>

Looking to deploy ECK from kubernetes manifest configuring a Kubernetes integration through a fleet agent policy defined in Kibana manifest yaml. Any well defined templates that could help me understand where I went wrong? I read the api reference and nothing from the inputs and below seem to take affect once policies are created.

```auto
    xpack.fleet.agentPolicies:
    - name: Elastic Agent on ECK policy
      id: eck-agent
      namespace: default
      monitoring_enabled:
      - logs
      - metrics
      unenroll_timeout: 900
      is_default: true
      package_policies:
      - package:
          name: system
        name: system-1
      - package:
          name: kubernetes
        name: kubernetes-1
        description: Sample logging for kubernetes
        inputs:
        - type: container-logs-filestream
          enabled: true
          streams:
          - data_stream:
              dataset: kubernetes.container_logs
            enabled: true
            vars:
              - name: paths
                value: "/var/log/containers/*${kubernetes.container.id}.log"
              - name: symlinks
                value: false
              - name: containerParserStream
                value: "none"
              - name: containerParserFormat
                value: "auto"
              - name: condition
                value: "${kubernetes.labels.sample} == 'samplevalue'"
              - name: processors
                value: | 
                  - decode_json_fields:
                      when.regexp.message: '^{'
                      fields: ["message"]
                      target: ""
                      overwrite_keys: true

```

---

<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:** [March 21, 2023, 5:09am UTC](https://discuss.elastic.co/t/kubernetes-integration-on-eck-kibana-fleet-policy-sample/326024/2 "2023-03-21T05:09:24Z")

</div>

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