forked from k-space/kube
elastic-system: Fixes and cleanups
This commit is contained in:
parent
6e0e7f4349
commit
edcb6399df
@ -24,50 +24,12 @@ spec:
|
|||||||
type: container
|
type: container
|
||||||
paths:
|
paths:
|
||||||
- /var/log/containers/*${data.kubernetes.container.id}.log
|
- /var/log/containers/*${data.kubernetes.container.id}.log
|
||||||
processors:
|
|
||||||
- drop_fields:
|
|
||||||
fields:
|
|
||||||
- stream
|
|
||||||
- target
|
|
||||||
- host
|
|
||||||
ignore_missing: true
|
|
||||||
- rename:
|
|
||||||
fields:
|
|
||||||
- from: "kubernetes.node.name"
|
|
||||||
to: "host"
|
|
||||||
- from: "kubernetes.pod.name"
|
|
||||||
to: "pod"
|
|
||||||
- from: "kubernetes.labels.app"
|
|
||||||
to: "app"
|
|
||||||
- from: "kubernetes.namespace"
|
|
||||||
to: "namespace"
|
|
||||||
ignore_missing: true
|
|
||||||
- drop_fields:
|
|
||||||
fields:
|
|
||||||
- input
|
|
||||||
- agent
|
|
||||||
- container
|
|
||||||
- ecs
|
|
||||||
- host
|
|
||||||
- kubernetes
|
|
||||||
- log
|
|
||||||
- "@metadata"
|
|
||||||
ignore_missing: true
|
|
||||||
- decode_json_fields:
|
|
||||||
fields:
|
|
||||||
- message
|
|
||||||
max_depth: 2
|
|
||||||
expand_keys: true
|
|
||||||
target: ""
|
|
||||||
add_error_key: true
|
|
||||||
daemonSet:
|
daemonSet:
|
||||||
podTemplate:
|
podTemplate:
|
||||||
spec:
|
spec:
|
||||||
serviceAccountName: filebeat
|
serviceAccountName: filebeat
|
||||||
automountServiceAccountToken: true
|
automountServiceAccountToken: true
|
||||||
terminationGracePeriodSeconds: 30
|
terminationGracePeriodSeconds: 30
|
||||||
dnsPolicy: ClusterFirstWithHostNet
|
|
||||||
hostNetwork: true # Allows to provide richer host metadata
|
|
||||||
containers:
|
containers:
|
||||||
- name: filebeat
|
- name: filebeat
|
||||||
securityContext:
|
securityContext:
|
||||||
@ -84,6 +46,12 @@ spec:
|
|||||||
valueFrom:
|
valueFrom:
|
||||||
fieldRef:
|
fieldRef:
|
||||||
fieldPath: spec.nodeName
|
fieldPath: spec.nodeName
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: 200Mi
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 100Mi
|
||||||
- name: exporter
|
- name: exporter
|
||||||
image: sepa/beats-exporter
|
image: sepa/beats-exporter
|
||||||
args:
|
args:
|
||||||
@ -224,3 +192,14 @@ spec:
|
|||||||
- hosts:
|
- hosts:
|
||||||
- kibana.k-space.ee
|
- kibana.k-space.ee
|
||||||
secretName: kibana-tls
|
secretName: kibana-tls
|
||||||
|
---
|
||||||
|
apiVersion: monitoring.coreos.com/v1
|
||||||
|
kind: PodMonitor
|
||||||
|
metadata:
|
||||||
|
name: filebeat
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
beat.k8s.elastic.co/name: filebeat
|
||||||
|
podMetricsEndpoints:
|
||||||
|
- port: exporter
|
||||||
|
Loading…
Reference in New Issue
Block a user