Warning while creating ingress listener: Translation failed: invalid ingress spec: service #6794
Replies: 1 comment 6 replies
-
I was facing this same exact issue, and in my case this was caused by the type of ingress. If you are trying to use nginx-ingress for this purpose, you must have ssl passthrough enabled (on nginx-ingress controller). If you do not have this, then your ingress will never reconcile (because 'regular' ingresses do not work on ClusterIP.). nginx-ingress with ssl-passthrough are an exception to this rule (as mentioned in the nginx documentation here Another thing I am seeing in this log is that the the 'from' column under events references loadbalancer-controller, and not nginx. To make sure nginx-ingress is used, you might need to add the required annotation to your host. Here is an example of the cluster configuration that we got running with nginx-ingress with ssl-passthrough enabled. apiVersion: kafka.strimzi.io/v1beta2
kind: Kafka
metadata:
name: kafka-cluster
annotations:
strimzi.io/node-pools: enabled
strimzi.io/kraft: enabled
spec:
kafka:
version: 3.8.0
metadataVersion: 3.8-IV0
listeners:
- name: plain
port: 9092
type: internal
tls: false
- name: tls
port: 9093
type: loadbalancer
tls: true
authentication:
type: tls
- name: public
port: 9095
type: ingress
tls: true
authentication:
type: tls
configuration:
brokers:
- broker: 0
host: broker-0.yourdomain.com
annotations:
kubernetes.io/ingress.class: "nginx"
bootstrap:
host: bootstrap.yourdomain.com
annotations:
kubernetes.io/ingress.class: "nginx" |
Beta Was this translation helpful? Give feedback.
-
Hello, this question is related to ingress type listener
my kafka config
Ingress type listener creates bootstrap service of type ClusterIP
when I describe the ingress created by this, I get this warning
Does this warning mean, traffic is prevented from going to service behind ingress? or why is it creating ClusterIP service instead of nodeport or loadbalancer?
Beta Was this translation helpful? Give feedback.
All reactions