k8s Проброс между сетками

apiVersion: v1
kind: Service
metadata:
  name: kafka-0
  namespace: infra-prod
spec:
  externalIPs:
  - 172.23.44.11
  externalTrafficPolicy: Cluster
  ports:
  - name: default
    port: 9092
    protocol: TCP
    targetPort: 9092
    nodePort: 0
  selector:
  sessionAffinity: None
  type: LoadBalancer
---
kind: "Endpoints"
apiVersion: "v1"
metadata:
  name: "kafka-0"
  namespace: infra-prod
subsets: 
  -
    addresses:
      -
        ip: "192.168.101.1" 
    ports:
      -
        port: 9092 
        name: "default"
Без рубрики

Related Articles

0 Comment

Leave a Comment

Ваш адрес email не будет опубликован.