Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 1.41 KB

README.md

File metadata and controls

34 lines (25 loc) · 1.41 KB

Kafka Client

Kafka client collects the messages, alerts, and system logs from KubeArmor and pushes them to the given Kafka system with the corresponding topics.

Kafka Deployment

If you do not have a pre-installed Kafka system, you can quickly set up the Kafka system.

$ cd kubearmor-kafka-client/deployments/kafka
~/kubearmor-kafka-client/deployments/kafka$ kubectl create namespace kubearmor
~/kubearmor-kafka-client/deployments/kafka$ kubectl apply -f kafka-crds.yaml
~/kubearmor-kafka-client/deployments/kafka$ kubectl apply -f kafka-deployment.yaml
~/kubearmor-kafka-client/deployments/kafka$ kubectl apply -f kafka-volume.yaml
~/kubearmor-kafka-client/deployments/kafka$ kubectl apply -f kafka-user-topic.yaml

Wait for the completed deployments of Kafka pods. It will take a couple of minutes.

kubearmor     kubearmor-kafka-cluster-entity-operator-5544dc6545-wtsqn   3/3     Running
kubearmor     kubearmor-kafka-cluster-kafka-0                            1/1     Running
kubearmor     kubearmor-kafka-cluster-zookeeper-0                        1/1     Running
kubearmor     kubearmor-kafka-cluster-operator-6c7b6c4c6-ktgs8           1/1     Running

Kafka Client Deployment

If the Kafka system is ready, you can simply deploy the Kafka client for KubeArmor.

$ cd kubearmor-kafka-client/deployments
~/kubearmor-kafka-client/deployments$ kubectl apply -n [target namespace] -f client-deployment.yaml