Failed to connect to Zookeeper kafka-cluster-zookeeper #5247
Unanswered
chanvoyage
asked this question in
Q&A
Replies: 1 comment 7 replies
-
|
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
hello everyone
1 ). i try to use TLS client authentication follow this blog , everything look good when Connect kafka cluster via ingress i found error : "Java.security.cert.CertificateException: No subject alternative DNS name matching strimzi-kafka-"
note: I use ingress nginx
https://itnext.io/kafka-on-kubernetes-the-strimzi-way-part-3-19cfdfe86660
no subject alternative DNS name matching strimzi-kafka-0.strimzi-kafka-brokers.strimzi.svc.cumulus-k8s found. #1486
and then kubectl apply kafka-clueter.taml
kafka operator logs tel me Failed to connect to Zookeeper kafka-cluster-zookeeper
cluster-oper.log
apiVersion: kafka.strimzi.io/v1beta2
kind: Kafka
metadata:
name: kafka-cluster
namespace: aia-kafka
spec:
kafka:
version: 2.8.0
replicas: 3
listeners:
- name: plain
port: 9092
type: internal
tls: false
configuration:
useServiceDnsDomain: true
- name: tls
port: 9093
type: internal
tls: true
- name: external
port: 9094
type: ingress
tls: true
authentication:
type: tls
configuration:
bootstrap:
host: bootstrap.chaiyapon.com
brokers:
- broker: 0
host: broker-0.chaiyapon.com
- broker: 1
host: broker-1.chaiyapon.com
- broker: 2
host: broker-2.chaiyapon.com
config:
offsets.topic.replication.factor: 3
transaction.state.log.replication.factor: 3
transaction.state.log.min.isr: 2
log.message.format.version: "2.8"
inter.broker.protocol.version: "2.8"
storage:
type: jbod
volumes:
- id: 0
size: 20Gi
type: persistent-claim
class: managed-premium
deleteClaim: true
zookeeper:
replicas: 3
storage:
type: persistent-claim
size: 20Gi
class: managed-premium
deleteClaim: true
entityOperator:
topicOperator: {}
userOperator: {}
=================
apiVersion: apps/v1
kind: Deployment
metadata:
name: strimzi-cluster-operator
labels:
app: strimzi
spec:
replicas: 1
selector:
matchLabels:
name: strimzi-cluster-operator
strimzi.io/kind: cluster-operator
template:
metadata:
labels:
name: strimzi-cluster-operator
strimzi.io/kind: cluster-operator
spec:
serviceAccountName: strimzi-cluster-operator
volumes:
- name: strimzi-tmp
emptyDir:
medium: Memory
- name: co-config-volume
configMap:
name: strimzi-cluster-operator
containers:
- name: strimzi-cluster-operator
image: acrRegistry/quay.io/strimzi/operator:0.23.0
ports:
- containerPort: 8080
name: http
args:
- /opt/strimzi/bin/cluster_operator_run.sh
volumeMounts:
- name: strimzi-tmp
mountPath: /tmp
- name: co-config-volume
mountPath: /opt/strimzi/custom-config/
env:
- name: STRIMZI_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: KUBERNETES_SERVICE_DNS_DOMAIN
value: chaiyapon.com
- name: STRIMZI_FULL_RECONCILIATION_INTERVAL_MS
value: "120000"
- name: STRIMZI_OPERATION_TIMEOUT_MS
value: "300000"
- name: STRIMZI_DEFAULT_TLS_SIDECAR_ENTITY_OPERATOR_IMAGE
value: acrRegistry/quay.io/strimzi/kafka:0.23.0-kafka-2.8.0
- name: STRIMZI_DEFAULT_KAFKA_EXPORTER_IMAGE
value: acrRegistry/quay.io/strimzi/kafka:0.23.0-kafka-2.8.0
- name: STRIMZI_DEFAULT_CRUISE_CONTROL_IMAGE
value: acrRegistry/quay.io/strimzi/kafka:0.23.0-kafka-2.8.0
- name: STRIMZI_DEFAULT_TLS_SIDECAR_CRUISE_CONTROL_IMAGE
value: acrRegistry/quay.io/strimzi/kafka:0.23.0-kafka-2.8.0
- name: STRIMZI_KAFKA_IMAGES
value: |
2.6.0=quay.io/strimzi/kafka:0.23.0-kafka-2.6.0
2.6.1=quay.io/strimzi/kafka:0.23.0-kafka-2.6.1
2.6.2=quay.io/strimzi/kafka:0.23.0-kafka-2.6.2
2.7.0=quay.io/strimzi/kafka:0.23.0-kafka-2.7.0
2.8.0=quay.io/strimzi/kafka:0.23.0-kafka-2.8.0
- name: STRIMZI_KAFKA_CONNECT_IMAGES
value: |
2.6.0=quay.io/strimzi/kafka:0.23.0-kafka-2.6.0
2.6.1=quay.io/strimzi/kafka:0.23.0-kafka-2.6.1
2.6.2=quay.io/strimzi/kafka:0.23.0-kafka-2.6.2
2.7.0=quay.io/strimzi/kafka:0.23.0-kafka-2.7.0
2.8.0=quay.io/strimzi/kafka:0.23.0-kafka-2.8.0
- name: STRIMZI_KAFKA_CONNECT_S2I_IMAGES
value: |
2.6.0=quay.io/strimzi/kafka:0.23.0-kafka-2.6.0
2.6.1=quay.io/strimzi/kafka:0.23.0-kafka-2.6.1
2.6.2=quay.io/strimzi/kafka:0.23.0-kafka-2.6.2
2.7.0=quay.io/strimzi/kafka:0.23.0-kafka-2.7.0
2.8.0=quay.io/strimzi/kafka:0.23.0-kafka-2.8.0
- name: STRIMZI_KAFKA_MIRROR_MAKER_IMAGES
value: |
2.6.0=quay.io/strimzi/kafka:0.23.0-kafka-2.6.0
2.6.1=quay.io/strimzi/kafka:0.23.0-kafka-2.6.1
2.6.2=quay.io/strimzi/kafka:0.23.0-kafka-2.6.2
2.7.0=quay.io/strimzi/kafka:0.23.0-kafka-2.7.0
2.8.0=quay.io/strimzi/kafka:0.23.0-kafka-2.8.0
- name: STRIMZI_KAFKA_MIRROR_MAKER_2_IMAGES
value: |
2.6.0=quay.io/strimzi/kafka:0.23.0-kafka-2.6.0
2.6.1=quay.io/strimzi/kafka:0.23.0-kafka-2.6.1
2.6.2=quay.io/strimzi/kafka:0.23.0-kafka-2.6.2
2.7.0=quay.io/strimzi/kafka:0.23.0-kafka-2.7.0
2.8.0=quay.io/strimzi/kafka:0.23.0-kafka-2.8.0
- name: STRIMZI_DEFAULT_TOPIC_OPERATOR_IMAGE
value: quay.io/strimzi/operator:0.23.0
- name: STRIMZI_DEFAULT_USER_OPERATOR_IMAGE
value: quay.io/strimzi/operator:0.23.0
- name: STRIMZI_DEFAULT_KAFKA_INIT_IMAGE
value: quay.io/strimzi/operator:0.23.0
- name: STRIMZI_DEFAULT_KAFKA_BRIDGE_IMAGE
value: quay.io/strimzi/kafka-bridge:0.19.0
- name: STRIMZI_DEFAULT_JMXTRANS_IMAGE
value: quay.io/strimzi/jmxtrans:0.23.0
- name: STRIMZI_DEFAULT_KANIKO_EXECUTOR_IMAGE
value: quay.io/strimzi/kaniko-executor:0.23.0
- name: STRIMZI_OPERATOR_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: STRIMZI_FEATURE_GATES
value: ""
livenessProbe:
httpGet:
path: /healthy
port: http
initialDelaySeconds: 10
periodSeconds: 30
readinessProbe:
httpGet:
path: /ready
port: http
initialDelaySeconds: 10
periodSeconds: 30
resources:
limits:
cpu: 1000m
memory: 384Mi
requests:
cpu: 200m
memory: 384Mi
strategy:
type: Recreate
Beta Was this translation helpful? Give feedback.
All reactions