apiVersion: v1
kind: Service
metadata:
  name: kafka-service
  labels:
    name: kafka
spec:
  ports:
  - port: 31234
    name: kafka-port
    protocol: TCP
    targetPort: 31234
    nodePort: 31234
  selector:
    app: kafka
    id: "0"
  type: NodePort