k8s集群引入外部服务kafka

apiVersion: v1
kind: Service
metadata:
  labels:
    app: kafka
  name: kafka
  namespace: apache-spark
spec:
  type: ClusterIP
  ports:
    - name: http
      port: 9092
      protocol: TCP
      targetPort: 9092
---
apiVersion: v1
kind: Endpoints
metadata:
  labels:
    app: kafka
  name: kafka
  namespace: apache-spark
subsets:
  - addresses:
      - ip: 10.10.10.99
    ports:
      - name: http
        port: 9092
        protocol: TCP

你可能感兴趣的:(hadoop)