Richard Jankowski | d7921b7 | 2018-02-20 16:55:12 -0500 | [diff] [blame] | 1 | apiVersion: v1 |
2 | kind: Service | ||||
3 | metadata: | ||||
4 | name: fluentd | ||||
5 | namespace: voltha | ||||
6 | spec: | ||||
7 | clusterIP: None | ||||
8 | selector: | ||||
9 | app: fluentd | ||||
10 | ports: | ||||
11 | - protocol: TCP | ||||
12 | port: 24224 | ||||
13 | targetPort: 24224 | ||||
14 | --- | ||||
15 | apiVersion: apps/v1beta1 | ||||
16 | kind: Deployment | ||||
17 | metadata: | ||||
18 | name: fluentd | ||||
19 | namespace: voltha | ||||
20 | spec: | ||||
21 | replicas: 1 | ||||
22 | template: | ||||
23 | metadata: | ||||
24 | labels: | ||||
25 | app: fluentd | ||||
26 | annotations: | ||||
Stephane Barbarie | 2d4e07f | 2018-03-26 16:46:45 -0400 | [diff] [blame] | 27 | cni: "calico" |
Richard Jankowski | d7921b7 | 2018-02-20 16:55:12 -0500 | [diff] [blame] | 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 |