Skip to content

Commit

Permalink
Provide k8s templates to just deploy an ipfix collector (#633)
Browse files Browse the repository at this point in the history
  • Loading branch information
jotak authored Mar 15, 2024
1 parent fee143f commit 4a8953c
Showing 1 changed file with 68 additions and 0 deletions.
68 changes: 68 additions & 0 deletions contrib/kubernetes/ipfix-collector-stdout.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: flowlogs-pipeline
labels:
app: flowlogs-pipeline
spec:
replicas: 1
selector:
matchLabels:
app: flowlogs-pipeline
template:
metadata:
labels:
app: flowlogs-pipeline
spec:
containers:
- name: flowlogs-pipeline
image: quay.io/netobserv/flowlogs-pipeline:main
args:
- "--config=/etc/flowlogs-pipeline/config.yaml"
ports:
- containerPort: 2055
imagePullPolicy: IfNotPresent
volumeMounts:
- name: configuration
mountPath: "/etc/flowlogs-pipeline/"
volumes:
- name: configuration
configMap:
name: flp-config
---
apiVersion: v1
kind: Service
metadata:
name: flowlogs-pipeline
labels:
app: flowlogs-pipeline
spec:
ports:
- port: 2055
targetPort: 2055
protocol: UDP
name: ipfix
selector:
app: flowlogs-pipeline
---
apiVersion: v1
kind: ConfigMap
metadata:
name: flp-config
data:
config.yaml: |
log-level: info
pipeline:
- name: ingest
- name: write
follows: ingest
parameters:
- name: ingest
ingest:
type: collector
collector:
hostName: 0.0.0.0
port: 2055
- name: write
write:
type: stdout

0 comments on commit 4a8953c

Please sign in to comment.