forked from cheungpat/fluentd-es-aws
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fluentd-es.yaml
59 lines (59 loc) · 1.67 KB
/
fluentd-es.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
labels:
k8s-app: fluentd-logging
kubernetes.io/cluster-service: "true"
name: fluentd-elasticsearch
namespace: kube-system
spec:
selector:
matchLabels:
k8s-app: fluentd-logging
kubernetes.io/cluster-service: "true"
template:
metadata:
creationTimestamp: null
labels:
k8s-app: fluentd-logging
kubernetes.io/cluster-service: "true"
name: fluentd-elasticsearch
namespace: kube-system
spec:
containers:
- image: quay.io/cheungpat/fluentd-elasticsearch-aws:1.17-3
imagePullPolicy: IfNotPresent
name: fluentd-elasticsearch
resources:
limits:
memory: 200Mi
requests:
cpu: 100m
memory: 200Mi
terminationMessagePath: /dev/termination-log
volumeMounts:
- mountPath: /var/log
name: varlog
- mountPath: /var/lib/docker/containers
name: varlibdockercontainers
readOnly: true
env:
- name: AWS_ACCESS_KEY_ID
value: <your aws access key id here>
- name: AWS_SECRET_ACCESS_KEY
value: <your aws secret access key here>
- name: AWS_ELASTICSEARCH_URL
value: https://<your elasticsearch endpoint here>
- name: AWS_REGION
value: <your elasticsearch domain region>
dnsPolicy: ClusterFirst
restartPolicy: Always
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
- hostPath:
path: /var/log
name: varlog
- hostPath:
path: /var/lib/docker/containers
name: varlibdockercontainers