<p>I am super new to Kubernetes.  I have inherited a side project - really an in progress POC - from another developer that recently left the team.  He did a demo from a VM that we still have access to before he abruptly left.  After he left we were able to go through his demo and things were working.  One of the team members restarted the VM and now things are broken.  I've been assigned to figure things out.  I've been able to bring all the components back up aside from the Kubernetes part which all stack traces point to being the issue at the moment.</p>
<p>As mentioned I am new to Kubernetes, so I lack the vocabulary to do proper searches online.</p>
<p>I have ran a few commands have pasted their output below.  If I understand correctly the issue is with the k8s deployment not running:
kubectl get all</p>
<pre><code>NAME                        TYPE        CLUSTER-IP      EXTERNAL-IPPORT(S)  AGE                                                 AGE
service/kubernetes          ClusterIP   10.96.0.1       &lt;none&gt;              443/TCP                                             14d
service/app-service-5x7z    NodePort    10.96.215.11    &lt;none&gt;              3000:32155/TCP,3001:32762/TCP,27017:30770/TCP       3d

NAME                                    READY   UP-TO-DATE  AVAILABLE   AGE
deployment.apps/app-deployment-5x7z     0/1     1           0           3d

NAME                                    DESIRED     CURRENT     READY       AGE
replicaset.apps/app-deployment-5x7z     1           1           0           3d
</code></pre>
<p>I'm guessing that the issue is with the fact that the READY state is <strong>0/1</strong></p>
<p>Can someone please guide me as to how I can bring this guy back up?  Also, I see a lot of heavy documentation online, is there a place with a shallow bank that I can dive into the work of Kubernetes.  I'm very excited about this opportunity, but it just hasn't been a smooth start.</p>

<p>Writing down my two cents on your solution:</p>

<ul>
<li>After you did the <code>kubeadm reset</code> and <code>kubeadm init</code> your cluster was empty.</li>
</ul>

<p><strong>1st Problem:</strong></p>

<blockquote>
  <p>I applied those changes, but now when i run <code>kubectl get all</code> i only get the first line "service/kubernetes" and i no longer get anything regarding <code>app-service-5x7z</code>
  any chance you could give me a hint as to how to accomplish that [getting back the deployment]?</p>
</blockquote>

<p><strong>Solution:</strong></p>

<ul>
<li>You need to find the yaml files responsible for deploying the cluster, it's probably called  <code>app-deployment</code>  or something similar.</li>
</ul>

<hr>

<p><strong>2nd Issue:</strong></p>

<blockquote>
  <p>Here's my current situation. Since I have no idea what this guy used, i built the docker images, and i updated the service and deployment yaml files to use them. I then ran  <code>kubectl apply -f &lt;yaml_folder&gt;</code>  which succeeds, but when i run  <code>kubectl get pods --watch</code>  i see the following:  <a href="https://justpaste.it/3p9r1" rel="nofollow noreferrer">justpaste.it/3p9r1</a>  any suggestions how i could debug and get to the root cause? my understanding is that it's not able to pull the docker image. but since i just created it and it's located on the same machine (not in a registry), not sure what the problem is.</p>
</blockquote>

<p><strong>Solution:</strong></p>

<p>From <a href="https://kubernetes.io/docs/concepts/containers/images/#pr%C3%A9-pulled-images" rel="nofollow noreferrer">PrePulledImages</a> Documentation:</p>

<blockquote>
  <p>By default, the kubelet will try to pull each image from the specified registry. However, if the  <code>imagePullPolicy</code>  property of the container is set to  <code>IfNotPresent</code>  or  <code>Never</code>, then a local image is used (preferentially or exclusively, respectively).
  All pods will have read access to any pre-pulled images.</p>
</blockquote>

<p>If a docker image is in the local registry of the node, you have to set <code>imagePullPolicy: Never</code> on the deployment file. Note that the image must be present on all nodes local repositories to ensure availability.</p>

<p>It's good also to create a <a href="https://docs.docker.com/docker-hub/repos/#private-repositories" rel="nofollow noreferrer">Docker Hub Private Repository</a> to ensure availability and integrity.</p>
