<p>I'm trying to execute the documentation provided by <a href="https://www.jenkins.io/doc/book/installing/kubernetes/" rel="nofollow noreferrer">Jenkins</a> to use Kubernetes + Docker + Jenkins. I'm doing that on my Ubuntu desktop and, in the end, the URL (<a href="http://192.168.49.2:32000/login" rel="nofollow noreferrer">http://192.168.49.2:32000/login</a>) to Jenkins can't be reached (I've got &quot;Refused to connect&quot;). How I'm very new with docker and Kube, I don't know even how to debug that to try to discover the problem.</p>
<p>I'd like to know what commands could I use to debug that and solve the problem.</p>

Leandro Lima
<p>Since you have no pods running, make sure that you create a <a href="https://www.jenkins.io/doc/book/installing/kubernetes/#create-jenkins-deployment-file" rel="nofollow noreferrer">Deployment file</a> which should be a jenkins-deployment.yaml file with these contents:</p>
<pre><code>apiVersion: apps/v1
kind: Deployment
metadata:
  name: jenkins
spec:
  replicas: 1
  selector:
    matchLabels:
      app: jenkins
  template:
    metadata:
      labels:
        app: jenkins
    spec:
      containers:
      - name: jenkins
        image: jenkins/jenkins:lts-jdk11
        ports:
        - containerPort: 8080
        volumeMounts:
        - name: jenkins-home
          mountPath: /var/jenkins_home
      volumes:
      - name: jenkins-home
        emptyDir: { }
</code></pre>
<p>After that, deploy it by running the command:</p>
<pre><code>kubectl create -f jenkins-deployment.yaml -n jenkins
</code></pre>
