<p>I am using Github plugin in Jenkins.
My jenkins runs on K8S pod using Kubernets plugin.</p>
<p>Trying to trigger a push event by pushing to my branch fails on Github side.
<code>We couldn’t deliver this payload: failed to connect to host</code></p>
<p>I'm able to reach <a href="http://www.github.com" rel="nofollow noreferrer">www.github.com</a> within the pod, and even using organization folder (scanning the github organization) gives me all the branches and webhook registers on github automatically using www..com/github-webhook</p>
<p>I'm using access token of an account with Admin permissions in the repo in Github.</p>
<p>Triggering manual hook from Jenkins gives me in the Jenkins logs -
<code>Created hook https://api.github.com/repos/xxx-xxx/xxx-xxx/hooks/404803105 (events: [PULL_REQUEST, PUSH, REPOSITORY])</code></p>
<p>But when I'm doing build, nothing shows in <a href="http://www.jenkins.com/logs.." rel="nofollow noreferrer">www.jenkins.com/logs..</a>.
<a href="https://i.stack.imgur.com/yBBis.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yBBis.png" alt="enter image description here" /></a></p>
<p><a href="https://i.stack.imgur.com/scKMP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/scKMP.png" alt="enter image description here" /></a></p>

EilonA
<p>From your description it looks like you have some notwork related problem.
Seems that your <code>Jenkins</code> instance is not reachable from internet and that is why <code>GitHub</code> which is public service is not able to send payload to your host.
Please make sure that at least this endpoint <code>$JENKINS_BASE_URL/github-webhook/</code> is exposed to internet so it can receive trigger message.</p>
