<p dir="auto">I used following definition to create a pod:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
  &quot;id&quot;: &quot;containermanifest&quot;,
  &quot;kind&quot;: &quot;Pod&quot;,
  &quot;apiVersion&quot;: &quot;v1beta1&quot;,
  &quot;desiredState&quot;: {
    &quot;manifest&quot;: {
      &quot;version&quot;: &quot;v1beta1&quot;,
      &quot;id&quot;: &quot;containermanifest&quot;,
      &quot;containers&quot;: [{
        &quot;name&quot;: &quot;heapster&quot;,
        &quot;image&quot;: &quot;kubernetes/heapster&quot;,
      }],
      &quot;restarPolicy&quot;: {&quot;never&quot;: {}}
    }
  },
  &quot;labels&quot;: {
    &quot;name&quot;: &quot;containermanifest&quot;
  }
}"><pre class="notranslate"><code class="notranslate">{
  "id": "containermanifest",
  "kind": "Pod",
  "apiVersion": "v1beta1",
  "desiredState": {
    "manifest": {
      "version": "v1beta1",
      "id": "containermanifest",
      "containers": [{
        "name": "heapster",
        "image": "kubernetes/heapster",
      }],
      "restarPolicy": {"never": {}}
    }
  },
  "labels": {
    "name": "containermanifest"
  }
}
</code></pre></div>
<p dir="auto">The creation succeeded. But I found the restartPolicy remained to be <code class="notranslate">always</code>. I was confused and look again and again into the code and template. Finally I found I made a typo <code class="notranslate">restarPolicy</code>. It seems the engine ignored this line and used the default value of <code class="notranslate">restartPolicy</code>.</p>
<p dir="auto">It's a small mistake but took me a lot of time. So I think we should validate each field of the template and warn the user about those unrecognized fields.</p>
<p dir="auto">Going through <a href="http://kubernetes.io/docs/getting-started-guides/docker/" rel="nofollow">this</a> guide to set up kubernetes locally via docker I end up with the error message as stated above.</p>
<p dir="auto">Steps taken:</p>
<ul dir="auto">
<li><code class="notranslate">export K8S_VERSION='1.3.0-alpha.1'</code> (tried 1.2.0 as well)</li>
<li>copy-paste the <code class="notranslate">docker run</code> command</li>
<li>download the appropriate <code class="notranslate">kubectl</code> binary and put in on <code class="notranslate">PATH</code> (<code class="notranslate">which kubectl</code> works)</li>
<li>(optionally) setup the cluster</li>
<li>run <code class="notranslate">kubectl get nodes</code></li>
</ul>
<p dir="auto">In short, no magic. I am running this locally on Ubuntu 14.04, docker 1.10.3. If you need more information let me know</p>