diff --git a/kafka/20dns.yml b/kafka/20dns.yml index 4088c311..3a74b708 100644 --- a/kafka/20dns.yml +++ b/kafka/20dns.yml @@ -3,9 +3,12 @@ apiVersion: v1 kind: Service metadata: - name: broker + name: kafka namespace: kafka + annotations: + service.alpha.kubernetes.io/tolerate-unready-endpoints: "true" spec: + publishNotReadyAddresses: true ports: - port: 9092 # [podname].broker.kafka.svc.cluster.local diff --git a/kafka/50kafka.yml b/kafka/50kafka.yml index 75c9afd5..990ebcf1 100644 --- a/kafka/50kafka.yml +++ b/kafka/50kafka.yml @@ -7,7 +7,7 @@ spec: selector: matchLabels: app: kafka - serviceName: "broker" + serviceName: "kafka" replicas: 3 updateStrategy: type: RollingUpdate