blob: 8a9c4dfbc0bf47783aff3122bba0d54cd2749f91 [file] [log] [blame]
Richard Jankowskid7921b72018-02-20 16:55:12 -05001apiVersion: v1
2kind: Service
3metadata:
4 name: fluentd
5 namespace: voltha
6spec:
7 clusterIP: None
8 selector:
9 app: fluentd
10 ports:
11 - protocol: TCP
12 port: 24224
13 targetPort: 24224
14---
15apiVersion: apps/v1beta1
16kind: Deployment
17metadata:
18 name: fluentd
19 namespace: voltha
20spec:
21 replicas: 1
22 template:
23 metadata:
24 labels:
25 app: fluentd
26 annotations:
27 cni: "weave"
28 spec:
29 terminationGracePeriodSeconds: 10
30 containers:
31 - name: fluentd
32 image: fluent/fluentd:v0.12.42
33 volumeMounts:
34 - name: fluentd-log
35 mountPath: /fluentd/log
36 ports:
37 - containerPort: 24224
38 volumes:
39 - name: fluentd-log
40 hostPath:
41 path: /tmp/fluentd
42 type: Directory
43