WIP:prometheus
[demos/kafka/monitoring] / kubernetes / kafka-1-localhost.yaml
1 apiVersion: v1
2 kind: Service
3 metadata:
4   labels:
5     kafka: kafka-1-localhost
6   name: kafka-1-localhost
7   namespace: kafka
8 spec:
9   type: NodePort
10   ports:
11     - name: "9081"
12       port: 9081
13       targetPort: 9081
14     - name: "7001"
15       port: 7001
16       targetPort: 7000
17   selector:
18     kafka: kafka-1
19 status:
20   loadBalancer: {}