-
Hello! We are setting up Kafka Connectors that provide database passwords via the I have been following this blog post for guidance. Here's the exact config: Connector A:
Connector B:
In both of the pods' logs I can also see the pod trying to retrieve the secret from the two distinct namespaces:
One of these retrievals succeeds but the other causes the pods for each connector to crash with an error like so:
Ideally each pod should only look for the secret in its own namespace rather than trying to fetch the secret in another namespace. Please let me know if there is a fix for this and if theres anything I can expand on! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Well, that is what you are asking it to do, to read it from both namespaces, or? So that seems correct. But you configured the RoleBinding incorrectly. The service account namespace ( |
Beta Was this translation helpful? Give feedback.
Well, that is what you are asking it to do, to read it from both namespaces, or? So that seems correct. But you configured the RoleBinding incorrectly. The service account namespace (
.subjects[].namespace
) needs to point to the namespace where your KafkaConnect is deployed => so it should be the same in both cases.