这里分类和汇总了欣宸的全部原创(含配套源码):https://github.com/zq2599/blog_demos
apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaBridge
metadata:
name: my-bridge
spec:
replicas: 1
bootstrapServers: my-cluster-kafka-bootstrap:9092
http:
port: 8080
kubectl apply -f kafka-bridge.yaml -n aabbcc
curl -X GET http://10.96.0.222:8080/topics
apiVersion: v1
kind: Service
metadata:
name: bridge-nodeport
spec:
type: NodePort
ports:
- port: 8080
nodePort: 31331
selector:
strimzi.io/cluster: my-bridge
strimzi.io/kind: KafkaBridge
strimzi.io/name: my-bridge-bridge
kubectl apply -f bridge-service-nodeport.yaml -n aabbcc