forked from netobserv/documents
-
Notifications
You must be signed in to change notification settings - Fork 0
/
goflow2-kafka.yaml
51 lines (51 loc) · 1.18 KB
/
goflow2-kafka.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
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: goflow2
name: goflow2
namespace: default
spec:
replicas: 1
selector:
matchLabels:
app: goflow2
template:
metadata:
labels:
app: goflow2
spec:
volumes:
- name: config-vol
configMap:
name: goflow2-config
containers:
- command:
- /bin/sh
- -c
- /goflow2 -loglevel=trace -listen=netflow://:2055 -transport=kafka -transport.kafka.brokers=my-cluster-kafka-brokers.default.svc.cluster.local:9092 -transport.kafka.topic=goflow-kube -transport.kafka.hashing=true -format.hash=TimeReceived,SamplerAddress,SrcAddr,SrcPort,SrcMac,DstAddress,DstPort,DstMac
image: quay.io/netobserv/goflow2:main
imagePullPolicy: IfNotPresent
name: goflow2
resources:
limits:
memory: 512Mi
cpu: "1"
---
apiVersion: v1
kind: Service
metadata:
name: goflow2
namespace: default
labels:
app: goflow2
spec:
ports:
- port: 8080
protocol: TCP
name: metrics
- port: 2055
protocol: UDP
name: netflow
selector:
app: goflow2