<p dir="auto"><strong>Is this a request for help?</strong> (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.):</p>
<p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.):</p>
<hr>
<p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one):</p>
<p dir="auto">BUG REPORT</p>

<p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):<br>
v1.4.0</p>
<p dir="auto"><strong>Environment</strong>:</p>
<ul dir="auto">
<li><strong>Cloud provider or hardware configuration</strong>:  VM</li>
<li><strong>OS</strong> (e.g. from /etc/os-release): Ubuntu 14.04.5 LTS</li>
<li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>): Linux ubuntu 3.13.0-96-generic <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="35939721" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/143" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/143/hovercard" href="https://github.com/kubernetes/kubernetes/pull/143">#143</a>-Ubuntu SMP Mon Aug 29 20:15:20 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux</li>
<li><strong>Install tools</strong>:</li>
<li><strong>Others</strong>:</li>
</ul>
<p dir="auto"><strong>What happened</strong>:<br>
when run <code class="notranslate">KUBERNETES_PROVIDER=ubuntu ./kube-up.sh</code> , it should report  missing  saltbase.  After corrected this, run kube-up.sh once again, it deploye kubernets to the Nodes, but report</p>
<blockquote>
<p dir="auto">/bin/bash: line 7: /root/kube/make-ca-cert.sh: Permission denied</p>
</blockquote>
<p dir="auto"><strong>What you expect1ed to happen</strong>:</p>
<p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):</p>
<ol dir="auto">
<li>install a fresh ubuntu 14</li>
<li>download  kubernets v1.4.0</li>
<li>expande kuernets files into /opt/</li>
<li>modify  /opt/kubernetes/cluster/ubuntu/config-default.sh,  change nodes to only one, as  <code class="notranslate">export nodes=${nodes:-"root@127.0.0.1"}</code>    <code class="notranslate">roles=${roles:-"ai"}</code>    and  <code class="notranslate">export  NUM_NODES=${NUM_NODES:-1}</code></li>
<li>copy the missing saltbase into  /opt/kubernetes/cluster</li>
<li>run   <code class="notranslate">KUBERNETES_PROVIDER=ubuntu ./kube-up.sh</code> , it should deploy files into nodes, but report make-ca-cert.sh error.</li>
</ol>
<p dir="auto"><strong>Anything else do we need to know</strong>:</p>
<p dir="auto">I'm trying to integrate configmaps into our continuous delivery flow. It's important for us that the deploys are idempotent.</p>
<p dir="auto">Typically we'd create the configuration from files by doing<br>
<code class="notranslate">kubectl create configmap myconfig --from-file=file1.yml --from-file=file2.yml</code></p>
<p dir="auto">However, if this is run more than once we get this since the command is a create<br>
<code class="notranslate">Error from server: configmaps "myconfig" already exists</code></p>
<p dir="auto">There are <code class="notranslate">apply</code> and <code class="notranslate">replace</code> commands for file or stdin resources but no <code class="notranslate">apply configmap</code>. We could grab all the contents of each file and pipe that into a resource YML then pass that through to <code class="notranslate">apply</code> but it seems awkward.</p>
<p dir="auto">What is the current accepted practice for updating a configmap that is file driven?</p>
<p dir="auto">There is some overlap with this and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="150952640" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/24744" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/24744/hovercard" href="https://github.com/kubernetes/kubernetes/issues/24744">#24744</a> plus <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="137938290" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/22368" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/22368/hovercard" href="https://github.com/kubernetes/kubernetes/issues/22368">#22368</a>.</p>