config/recipes/beats/packetbeat_dns_http.yaml (63 lines of code) (raw):

apiVersion: beat.k8s.elastic.co/v1beta1 kind: Beat metadata: name: packetbeat spec: type: packetbeat version: 8.17.0 elasticsearchRef: name: elasticsearch kibanaRef: name: kibana config: packetbeat.interfaces.device: any packetbeat.protocols: - type: dns ports: [53] include_authorities: true include_additionals: true - type: http ports: [80, 8000, 8080, 9200] packetbeat.flows: timeout: 30s period: 10s processors: - add_cloud_metadata: {} - add_host_metadata: {} daemonSet: podTemplate: spec: terminationGracePeriodSeconds: 30 hostNetwork: true automountServiceAccountToken: true # some older Beat versions are depending on this settings presence in k8s context dnsPolicy: ClusterFirstWithHostNet containers: - name: packetbeat securityContext: runAsUser: 0 capabilities: add: - NET_ADMIN --- apiVersion: elasticsearch.k8s.elastic.co/v1 kind: Elasticsearch metadata: name: elasticsearch spec: version: 8.17.0 nodeSets: - name: default count: 3 config: node.store.allow_mmap: false --- apiVersion: kibana.k8s.elastic.co/v1 kind: Kibana metadata: name: kibana spec: version: 8.17.0 count: 1 elasticsearchRef: name: elasticsearch ...