 apiVersion: v1 
 kind: Service 
 metadata:  
   labels:  
     app: kafkaApp 
   name: kafka-svc
   namespace: kafka-vanila
 spec:  
   ports:  
     - port: 9092 
       targetPort: 9092
       protocol: TCP
     - port: 2181 
       targetPort: 2181 
       protocol: TCP
   selector:  
     app: kafkaApp 
   type: LoadBalancer