Interview Prep/Jenkins/Plugins, JCasC & Kubernetes agents

Agent pod logs (`jnlp`): `java.net.UnknownHostException: jenkins.jenkins.svc.cluster.local`

IntermediateTroubleshootingPlugins, JCasC & Kubernetes agents
Answer

Likely causes → Service name or namespace wrong, agents running in another cluster where that DNS name does not exist, or DNS blocked by NetworkPolicy (port 53 to kube-dns).

Diagnose → kubectl -n jenkins get svc; from a debug pod in the agent namespace: nslookup jenkins.jenkins.svc.cluster.local.

Fix → Correct jenkinsUrl; allow DNS egress; for remote clusters use the public HTTPS URL with WebSocket.

Prevent → Include DNS in the agents' NetworkPolicy baseline.

All Jenkins questions Roadmap: Jenkins

More on Plugins, JCasC & Kubernetes agents