blob: d60f7a71e267460f1ac625fb4b93443eaf8232be [file] [log] [blame]
Zack Williams41513bf2018-07-07 20:08:35 -07001# Copyright 2017-present Open Networking Foundation
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
Richard Jankowskid7921b72018-02-20 16:55:12 -050014apiVersion: v1
15kind: Service
16metadata:
17 name: fluentd
18 namespace: voltha
19spec:
20 clusterIP: None
21 selector:
22 app: fluentd
23 ports:
24 - protocol: TCP
25 port: 24224
26 targetPort: 24224
27---
28apiVersion: apps/v1beta1
29kind: Deployment
30metadata:
31 name: fluentd
32 namespace: voltha
33spec:
34 replicas: 1
35 template:
36 metadata:
37 labels:
38 app: fluentd
39 annotations:
Stephane Barbarie2d4e07f2018-03-26 16:46:45 -040040 cni: "calico"
Richard Jankowskid7921b72018-02-20 16:55:12 -050041 spec:
42 terminationGracePeriodSeconds: 10
43 containers:
44 - name: fluentd
45 image: fluent/fluentd:v0.12.42
46 volumeMounts:
47 - name: fluentd-log
48 mountPath: /fluentd/log
49 ports:
50 - containerPort: 24224
51 volumes:
52 - name: fluentd-log
53 hostPath:
54 path: /tmp/fluentd
55 type: Directory
56