From 4a8953c48cfa76d4184a9d54f55a98a00d75838e Mon Sep 17 00:00:00 2001 From: Joel Takvorian Date: Fri, 15 Mar 2024 11:13:16 +0100 Subject: [PATCH] Provide k8s templates to just deploy an ipfix collector (#633) --- .../kubernetes/ipfix-collector-stdout.yaml | 68 +++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 contrib/kubernetes/ipfix-collector-stdout.yaml diff --git a/contrib/kubernetes/ipfix-collector-stdout.yaml b/contrib/kubernetes/ipfix-collector-stdout.yaml new file mode 100644 index 000000000..d7211b006 --- /dev/null +++ b/contrib/kubernetes/ipfix-collector-stdout.yaml @@ -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