externalZookeeper.servers 参数有问题
我看 kafka pod 报错 java.net.UnknownHostException: zookeeperkafka
为什么 zookeeper 后面多了一个 kafka
helm install kafka bitnami/kafka \
--set externalAccess.enabled=true \
--set externalAccess.service.type=NodePort \
--set externalAccess.service.nodePorts[0]=30303 \
--set externalAccess.service.useHostIPs=true \
--set replicaCount=1 \
--set zookeeperChrootPath=kafka \
--set zookeeper.enabled=false \
--set externalZookeeper.servers=zookeeper \
--set-json 'affinity={
"nodeAffinity": {
"requiredDuringSchedulingIgnoredDuringExecution": {
"nodeSelectorTerms": [
{
"matchExpressions": [
{
"key": "kafka",
"operator": "In",
"values": [
"yes"
]
}
]
}
]
}
},
"podAntiAffinity": {
"preferredDuringSchedulingIgnoredDuringExecution": [
{
"weight": 1,
"podAffinityTerm": {
"labelSelector": {
"matchLabels": {
"app.kubernetes.io/component": "kafka",
"app.kubernetes.io/instance": "kafka",
"app.kubernetes.io/name": "kafka"
}
},
"topologyKey": "kubernetes.io/hostname"
}
}
]
}
}'
1
dunhanson OP |