title: Kuberenetes: receive CrashLoopBackOff
body: <p>I can successfully run the following image on a local container.</p>
  
  <p>Dockerfile:</p>
  
  <pre><code>FROM ubuntu:latest
  
  RUN apt-get update
  RUN apt-get -qq update
  RUN apt-get install -y nodejs npm
  # TODO could uninstall some build dependencies
  
  # debian installs `node` as `nodejs`
  RUN update-alternatives --install /usr/bin/node node /usr/bin/nodejs 10
  
  COPY package.json package.json
  
  RUN npm install
  
  COPY . .
  
  CMD ["npm", "start"]
  </code></pre>
  
  <p>The current folder holds a simple "hello world" node-express app, and I can curl it to <code>localhost:3000</code>.</p>
  
  <p>The depolyment.yml:</p>
  
  <pre><code>apiVersion: apps/v1
  kind: Deployment
  metadata:
    name: node-deployment
    labels:
      app: node-app
  spec:
    replicas: 2
    selector:
      matchLabels:
        app: node-app
    template:
      metadata:
        labels:
          app: node-app
      spec:
        containers:
        - name: node-app
          image: my-repo/ubuntu-node:firsttry 
          ports:
          - containerPort: 3000
  </code></pre>
  
  <p>and the event (<code>kubectl describe pod</code>):</p>
  
  <pre><code>Warning  BackOff                40s (x20 over 5m)  kubelet, minikube  Back-off restarting failed container
  </code></pre>
  
  <p>Any suggestions about how to solve the issue?</p>