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