Defining networkPolicyPeers in Kafka resource #4885
-
Hi everybody,, we've installed Strimzi 0.20.0 via helm chart and it's running fine so far. Now we'd like to manage topics etc. with lenses.io which is deployed to an own namespace. Lenses is able to connect to all services except the Zookeeper. As we found out, access to ZK is disabled for pods outside the Strimzi namespace. Manipulating the network policy manually does work, just for a couple of seconds, of course, by adding a namespace selector:
We now tried to permanently enable access for pods from the lenses namespace by adding an entry to the ZK network policy via the kafka resource. Unfortunately, we did only find documentation about doing so for Kafka itself, so we tried the same pattern on Zookeeper - which fails:
This does not add an entry to the Zookeeper network policy. How is an additional entry to be defined in the Kafka resource? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
ZooKeeper is locked down intentionally. ZooKeeper is hard to secure and it will be soon removed from Kafka. So any tools which still require it might not be future proof. If you really want to access it, the network policies are not the only obstacle because it is also secured by TLS authentication. You can use this project to open it up: https://github.com/scholzj/zoo-entrance (not part of the Strimzi project, use at your own risk as it it completely opens up ZooKeeper without any security.) As for the changes, you tried to do in the Kafka CR -> please keep in mind that you need to follow the documentation and cannot add you own fields to the custom resources. They will not be used by the operator. The Operator can use only the fields which they understand (i.e. what is described int he API reference). |
Beta Was this translation helpful? Give feedback.
ZooKeeper is locked down intentionally. ZooKeeper is hard to secure and it will be soon removed from Kafka. So any tools which still require it might not be future proof. If you really want to access it, the network policies are not the only obstacle because it is also secured by TLS authentication. You can use this project to open it up: https://github.com/scholzj/zoo-entrance (not part of the Strimzi project, use at your own risk as it it completely opens up ZooKeeper without any security.)
As for the changes, you tried to do in the Kafka CR -> please keep in mind that you need to follow the documentation and cannot add you own fields to the custom resources. They will not be used by th…