Question about the Kubernetes templates:
The README for the "Kubernetes nodes by HTTP" template says (https://git.zabbix.com/projects/ZBX/...tp/README.md):
The Inherited and Host Macros form in Zabbix says, the default for {$KUBE.API.URL} is https://kubernetes.default.svc.cluster.local:443. Sounds reasonable. dig (run in a pod on the cluster) says, there is a DNS entry:
Problem is, node discovery doesn't work. The zabbix-proxy log file says
Apparently the kubernetes.default.svc.cluster.local is not reachable from the proxy:
What is the story here? Is the provided default supposed to work out of the box?
The README for the "Kubernetes nodes by HTTP" template says (https://git.zabbix.com/projects/ZBX/...tp/README.md):
Code:
Set the {$KUBE.API.URL} such as <scheme>://<host>:<port>.
Code:
root@debian:/# dig kubernetes.default.svc.cluster.local A +short 10.43.0.1
Code:
212:20250710:091410.368 [ Kubernetes ] ERROR: Error: cannot get URL: Timeout was reached. 211:20250710:091610.521 [ Kubernetes ] ERROR: Error: cannot get URL: Timeout was reached. 212:20250710:092110.325 [ Kubernetes ] ERROR: Error: cannot get URL: Timeout was reached. 211:20250710:093210.061 [ Kubernetes ] ERROR: Error: cannot get URL: Timeout was reached. 213:20250710:093410.719 [ Kubernetes ] ERROR: Error: cannot get URL: Timeout was reached. 214:20250710:093510.366 [ Kubernetes ] ERROR: Error: cannot get URL: Timeout was reached. 212:20250710:093610.113 [ Kubernetes ] ERROR: Error: cannot get URL: Timeout was reached. 212:20250710:094710.343 [ Kubernetes ] ERROR: Error: cannot get URL: Timeout was reached.
Code:
% kubernetes exec -it zabbix-proxy-d756cb76c-8tw79 -- sh ~ $ ping kubernetes.default.svc.cluster.local PING kubernetes.default.svc.cluster.local (10.43.0.1) 56(84) bytes of data. From gate.example.com (172.19.96.1) icmp_seq=1 Destination Port Unreachable From gate.example.com (172.19.96.1) icmp_seq=2 Destination Port Unreachable From gate.example.com (172.19.96.1) icmp_seq=3 Destination Port Unreachable From gate.example.com (172.19.96.1) icmp_seq=4 Destination Port Unreachable ^C --- kubernetes.default.svc.cluster.local ping statistics --- 4 packets transmitted, 0 received, +4 errors, 100% packet loss, time 3004ms