<p dir="auto">Start with:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="       volumeMounts:
        - mountPath: /vol
          name: vol 
        - mountPath: /vol-456                                                                                                                                 
          name: vol 
          subPath: d456"><pre class="notranslate"><code class="notranslate">       volumeMounts:
        - mountPath: /vol
          name: vol 
        - mountPath: /vol-456                                                                                                                                 
          name: vol 
          subPath: d456
</code></pre></div>
<p dir="auto">Edit to:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="        volumeMounts:
        - mountPath: /vol
          name: vol 
        - mountPath: /vol-d2
          name: vol
          subPath: d2     "><pre class="notranslate"><code class="notranslate">        volumeMounts:
        - mountPath: /vol
          name: vol 
        - mountPath: /vol-d2
          name: vol
          subPath: d2     
</code></pre></div>
<p dir="auto">Read back what happened:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="        volumeMounts:
        - mountPath: /vol-d2
          name: vol 
          subPath: d2
        - mountPath: /vol-456
          name: vol 
          subPath: d456"><pre class="notranslate"><code class="notranslate">        volumeMounts:
        - mountPath: /vol-d2
          name: vol 
          subPath: d2
        - mountPath: /vol-456
          name: vol 
          subPath: d456
</code></pre></div>
<p dir="auto">It synthesized a COMPLETELY WRONG result.  At this point, I can not, in good conscience, advocate using kubectl edit.</p>
<p dir="auto">Can I please have <code class="notranslate">kubectl edit --replace</code> that doesn't go through patch brokenness.  Or better, make that default for 1.5 and make <code class="notranslate">kubectl edit --patch</code>   be the broken (but eventually fixed) path.</p>
<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>.): No.</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.): kubeadm kubelet</p>
<hr>
<p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one): FEATURE REQUEST</p>

<p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[root@192 lib]# kubectl version
Client Version: version.Info{Major:&quot;1&quot;, Minor:&quot;4&quot;, GitVersion:&quot;v1.4.0&quot;, GitCommit:&quot;a16c0a7f71a6f93c7e0f222d961f4675cd97a46b&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2016-09-26T18:16:57Z&quot;, GoVersion:&quot;go1.6.3&quot;, Compiler:&quot;gc&quot;, Platform:&quot;linux/amd64&quot;}
Server Version: version.Info{Major:&quot;1&quot;, Minor:&quot;4&quot;, GitVersion:&quot;v1.4.0&quot;, GitCommit:&quot;a16c0a7f71a6f93c7e0f222d961f4675cd97a46b&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2016-09-26T18:10:32Z&quot;, GoVersion:&quot;go1.6.3&quot;, Compiler:&quot;gc&quot;, Platform:&quot;linux/amd64&quot;}"><pre class="notranslate"><code class="notranslate">[root@192 lib]# kubectl version
Client Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.0", GitCommit:"a16c0a7f71a6f93c7e0f222d961f4675cd97a46b", GitTreeState:"clean", BuildDate:"2016-09-26T18:16:57Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.0", GitCommit:"a16c0a7f71a6f93c7e0f222d961f4675cd97a46b", GitTreeState:"clean", BuildDate:"2016-09-26T18:10:32Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}
</code></pre></div>
<p dir="auto"><strong>Environment</strong>:</p>
<ul dir="auto">
<li><strong>Cloud provider or hardware configuration</strong>: VMs</li>
<li><strong>OS</strong> (e.g. from /etc/os-release): CentOS 7</li>
<li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>): Linux 3.10.0-327.el7.x86_64 <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="35192559" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/1" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/1/hovercard" href="https://github.com/kubernetes/kubernetes/issues/1">#1</a> SMP Thu Nov 19 22:10:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux</li>
<li><strong>Install tools</strong>: kubeadm init</li>
<li><strong>Others</strong>:</li>
</ul>
<p dir="auto"><strong>What happened</strong>:<br>
ps aux | grep kubelet shows following:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="root       9796  2.7  0.9 1089780 75944 ?       Ssl  10月13 147:04 /usr/bin/kubelet --kubeconfig=/etc/kubernetes/kubelet.conf --require-kubeconfig=true --pod-manifest-path=/etc/kubernetes/manifests --allow-privileged=true --network-plugin=cni --cni-conf-dir=/etc/cni/net.d --cni-bin-dir=/opt/cni/bin --cluster-dns=100.64.0.10 --cluster-domain=cluster.local --v=4"><pre class="notranslate"><code class="notranslate">root       9796  2.7  0.9 1089780 75944 ?       Ssl  10月13 147:04 /usr/bin/kubelet --kubeconfig=/etc/kubernetes/kubelet.conf --require-kubeconfig=true --pod-manifest-path=/etc/kubernetes/manifests --allow-privileged=true --network-plugin=cni --cni-conf-dir=/etc/cni/net.d --cni-bin-dir=/opt/cni/bin --cluster-dns=100.64.0.10 --cluster-domain=cluster.local --v=4
</code></pre></div>
<p dir="auto">Where can we configure the parameters for kubelet?<br>
I have checked the source code of kubeadm but cannot find the correct place to change the configuration if kubelet.</p>
<p dir="auto"><strong>What you expected to happen</strong>:<br>
Specify the right place of customizing kubelet.</p>
<p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):<br>
No need to reproduce</p>
<p dir="auto">@kubernetes/sig-cluster-lifecycle</p>