metadata:
labels:
kafka: kafka-1
- name: kafka-1
+ name: kafka-1-cluster
namespace: kafka
spec:
ports:
- - name: "9081"
- port: 9081
- targetPort: 9081
- - name: "7001"
- port: 7001
+ - name: "9092"
+ port: 9092
+ targetPort: 9092
+ - name: "7000"
+ port: 7000
targetPort: 7000
selector:
kafka: kafka-1
metadata:
labels:
kafka: kafka-1
- name: kafka-1
+ name: kafka-1-localhost
namespace: kafka
spec:
ports:
metadata:
labels:
kafka: kafka-2
- name: kafka-2
+ name: kafka-2-cluster
namespace: kafka
spec:
ports:
- name: "9092"
port: 9092
- targetPort: 9082
- - name: "9082"
- port: 9082
- targetPort: 9082
- - name: "7002"
- port: 7002
+ targetPort: 9092
+ - name: "7000"
+ port: 7000
targetPort: 7000
selector:
kafka: kafka-2
metadata:
labels:
kafka: kafka-2
- name: kafka-2
+ name: kafka-2-localhost
namespace: kafka
spec:
+ type: NodePort
ports:
- name: "9092"
port: 9092
metadata:
labels:
kafka: kafka-3
- name: kafka-3
+ name: kafka-3-cluster
namespace: kafka
spec:
ports:
- - name: "9083"
- port: 9083
- targetPort: 9083
- - name: "7003"
- port: 7003
+ - name: "9092"
+ port: 9092
+ targetPort: 9092
+ - name: "7000"
+ port: 7000
targetPort: 7000
selector:
kafka: kafka-3
metadata:
labels:
kafka: kafka-3
- name: kafka-3
+ name: kafka-3-localhost
namespace: kafka
spec:
ports:
metadata:
labels:
kafka: kafka-4
- name: kafka-4
+ name: kafka-4-cluster
namespace: kafka
spec:
ports:
- - name: "9084"
- port: 9084
- targetPort: 9084
- - name: "7004"
- port: 7004
+ - name: "9092"
+ port: 9092
+ targetPort: 9092
+ - name: "7000"
+ port: 7000
targetPort: 7000
selector:
kafka: kafka-4
metadata:
labels:
kafka: kafka-4
- name: kafka-4
+ name: kafka-4-localhost
namespace: kafka
spec:
ports:
metadata:
labels:
kafka: kafka-5
- name: kafka-5
+ name: kafka-5-cluster
namespace: kafka
spec:
ports:
- - name: "9085"
- port: 9085
- targetPort: 9085
- - name: "7005"
- port: 7005
+ - name: "9092"
+ port: 9092
+ targetPort: 9092
+ - name: "7000"
+ port: 7000
targetPort: 7000
selector:
kafka: kafka-5
metadata:
labels:
kafka: kafka-5
- name: kafka-5
+ name: kafka-5-localhost
namespace: kafka
spec:
ports: