[ZBX-25940] Issue in Zabbix Kybernetes Templates when there are pods with the same name in different namespaces. Created: 2025 Jan 27  Updated: 2025 Mar 28  Resolved: 2025 Mar 18

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: None
Affects Version/s: None
Fix Version/s: 7.0.11rc1, 7.2.5rc1, 7.4.0beta1

Type: Problem report Priority: Trivial
Reporter: Dmitry Assignee: Evgenii Gordymov
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2025-01-27-18-25-43-119.png     PNG File image-2025-01-27-18-28-42-944.png    
Team: Team INT
Story Points: 0.3

 Description   

Steps to reproduce:

  1. We are using Zabbix Server 7.0 with templates configured via the Zabbix Kubernetes Integration.
  2. Have a cluster with multiple namespaces.
  3. Have pods in them with same names as in other namespaces

Result:

  1.  Kubernetes nodes by HTTP

To resolve this error I've added "Namespace [{#NAMESPACE}" to Item prototype Name and key

The items were successfully added, but I encountered an issue where all the values for items in namespace1 and namespace2 are identical. For instance, when an error occurs in namespace1, it triggers a corresponding error in namespace2 in Zabbix.

  1. Kubernetes cluster state by HTTP

     The items were successfully added. The items were added successfully. But some item values ​​for items in namespace1 and namespace2 are identical and some values ​​are missing. (example Namespace [namespace1] Pod [postgres-1] Phase: Failed is missing)
     And trigger "Pod is not healthy" does not fire when pod error occurs. 



 Comments   
Comment by Evgenii Gordymov [ 2025 Mar 14 ]

Fixed in:

Generated at Fri Apr 18 09:07:09 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.