diff --git a/linkedin-kafka-monitor/kafka-monitor-service.yml b/linkedin-kafka-monitor/kafka-monitor-service.yml new file mode 100644 index 00000000..625e1393 --- /dev/null +++ b/linkedin-kafka-monitor/kafka-monitor-service.yml @@ -0,0 +1,12 @@ +kind: Service +apiVersion: v1 +metadata: + name: kafka-monitor + namespace: kafka +spec: + selector: + app: kafka-monitor + ports: + - protocol: TCP + port: 80 + targetPort: 80 diff --git a/linkedin-kafka-monitor/kafka-monitor.yml b/linkedin-kafka-monitor/kafka-monitor.yml new file mode 100644 index 00000000..963d3c46 --- /dev/null +++ b/linkedin-kafka-monitor/kafka-monitor.yml @@ -0,0 +1,23 @@ +apiVersion: apps/v1beta2 +kind: Deployment +metadata: + name: kafka-monitor + namespace: kafka +spec: + replicas: 1 + selector: + matchLabels: + app: kafka-monitor + template: + metadata: + labels: + app: kafka-monitor + spec: + containers: + - name: kafka-monitor + image: solsson/kafka-monitor@sha256:93e8e53da8611b63b991278ed54f52c828ba1c90285b704d4c3fef1c7d4d23d9 + ports: + - name: http + containerPort: 8000 + - name: metrics + containerPort: 8778